Modules
extends Modules
in package
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
-------------------------------------------------------------------------- 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
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
-------------------------------------------------------------------------- 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
-------------------------------------------------------------------------- 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.