Modules
extends Modules
in package
Modules Class
Table of Contents
- $aliases : array<string|int, string>
- -------------------------------------------------------------------------- Auto-Discovery Rules --------------------------------------------------------------------------
- $discoverInComposer : bool
- -------------------------------------------------------------------------- Enable Auto-Discovery Within Composer Packages? --------------------------------------------------------------------------
- $enabled : bool
- -------------------------------------------------------------------------- Enable Auto-Discovery? --------------------------------------------------------------------------
- shouldDiscover() : bool
- Should the application auto-discover the requested resource.
Properties
$aliases
-------------------------------------------------------------------------- Auto-Discovery Rules --------------------------------------------------------------------------
public
array<string|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.
$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.
Methods
shouldDiscover()
Should the application auto-discover the requested resource.
public
shouldDiscover(string $alias) : bool
Parameters
- $alias : string