Menu

## Modules extends Modules
in package

Modules.php : 13

Modules Configuration.

NOTE: This class is required prior to Autoloader instantiation, and does not extend BaseConfig.

### Table of Contents

#### Properties

$aliases : array<int, string>
  -------------------------------------------------------------------------- Auto-Discovery Rules --------------------------------------------------------------------------
$composerPackages : array{only?: list, exclude?: list}
  The Composer package list for Auto-Discovery This setting is optional.
$discoverInComposer : bool
  -------------------------------------------------------------------------- Enable Auto-Discovery Within Composer Packages? --------------------------------------------------------------------------
$enabled : bool
  -------------------------------------------------------------------------- Enable Auto-Discovery? --------------------------------------------------------------------------

### Properties

#### $aliases

Modules.php : 75

-------------------------------------------------------------------------- Auto-Discovery Rules --------------------------------------------------------------------------

`public array<int, string> $aliases = ['events', 'filters', 'registrars', 'routes', 'services']`

Aliases list of all discovery classes that will be active and used during the current application request.

If it is not listed, only the base application elements will be used.

#### $composerPackages

Modules.php : 61

The Composer package list for Auto-Discovery This setting is optional.

`public array{only?: list, exclude?: list} $composerPackages = []`

E.g.: [ 'only' => [ // List up all packages to auto-discover 'codeigniter4/shield', ], ] or [ 'exclude' => [ // List up packages to exclude. 'pestphp/pest', ], ]

#### $discoverInComposer

Modules.php : 38

-------------------------------------------------------------------------- Enable Auto-Discovery Within Composer Packages? --------------------------------------------------------------------------

`public bool $discoverInComposer = true`

If true, then auto-discovery will happen across all namespaces loaded by Composer, as well as the namespaces configured locally.

#### $enabled

Modules.php : 26

-------------------------------------------------------------------------- Enable Auto-Discovery? --------------------------------------------------------------------------

`public bool $enabled = true`

If true, then auto-discovery will happen across all elements listed in $aliases below. If false, no auto-discovery will happen at all, giving a slight performance boost.

## Search results