Class \Prado\TApplicationConfiguration
This class is used internally by TApplication to parse and represent application configuration.
Class hierarchy
Author: Qiang Xue <qiang.xue@gmail.com>Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.0
public
|
getAliases() : array<string|int, mixed>
Returns list of path alias definitions.
The definitions are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single alias definition, with the key being the alias name and the value the absolute path. |
public
|
getComposerExtensionClass(string $name) : null|string
Given a module id as a composer package name, returns the extension bootstrap
{@see \Prado\TModule} class.
|
public
|
|
public
|
|
public
|
getModules() : array<string|int, mixed>
Returns list of module configurations.
The module configurations are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single module configuration, with the key being the module ID and the value the module configuration. Each module configuration is stored in terms of an array with the following content ([0]=>module type, [1]=>module properties, [2]=>complete module configuration) The module properties are an array of property values indexed by property names. The complete module configuration is a TXmlElement object representing the raw module configuration which may contain contents enclosed within module tags. |
public
|
getParameters() : array<string|int, mixed>
Returns list of parameter definitions.
The parameter definitions are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single parameter definition, with the key being the parameter ID and the value the parameter definition. A parameter definition can be either a string representing a string-typed parameter, or an array. The latter defines a component-typed parameter whose format is as follows, ([0]=>component type, [1]=>component properties) The component properties are an array of property values indexed by property names. |
public
|
getProperties() : array<string|int, mixed>
Returns list of page initial property values.
Each array element represents a single property with the key being the property name and the value the initial property value. |
public
|
|
public
|
getUsings() : array<string|int, mixed>
Returns list of namespaces to be used.
The namespaces are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single namespace usage, with the value being the namespace to be used. |
public
|
|
public
|
loadFromPhp(array<string|int, mixed> $config, string $configPath) : mixed
Parses the application configuration given in terms of a PHP array.
|
public
|
loadFromXml(TXmlElement $dom, string $configPath) : mixed
Parses the application configuration given in terms of a TXmlElement.
|
protected
|
getComposerExtensionBootStraps() : array<string, string>
Reads the Composer static RegisteredLoaders for their Vendor Directory. Reads the Vendor
Directory composer file 'installed.json' (accumulated extensions composer.json) for the project.
The ['extra']['bootstrap'] field is read for each extension, if it's there. |
protected
|
loadExternalPhp(array<string|int, mixed> $includeNode, string $configPath) : mixed
Loads the external PHP array.
|
protected
|
loadExternalXml(TXmlElement $includeNode, string $configPath) : mixed
Loads the external XML configurations.
|
protected
|
loadModulesPhp(array<string|int, mixed> $modulesNode, string $configPath) : mixed
Loads the modules PHP array.
|
protected
|
|
protected
|
loadParametersPhp(array<string|int, mixed> $parametersNode, string $configPath) : mixed
Loads the parameters PHP array.
|
protected
|
loadParametersXml(TXmlElement $parametersNode, string $configPath) : mixed
Loads the parameters XML node.
|
protected
|
loadPathsPhp(array<string|int, mixed> $pathsNode, string $configPath) : mixed
Loads the paths PHP array
|
protected
|
|
protected
|
loadServicesPhp(array<string|int, mixed> $servicesNode, string $configPath) : mixed
Loads the services PHP array.
|
protected
|
public
mixed
|
COMPOSER_EXTRA_CLASS
Name of the Extra field to look for Prado Extension Class
|
'bootstrap'
|
public
mixed
|
COMPOSER_INSTALLED_CACHE
The cache name for installed Prado composer packages
|
'prado:composer:installedcache'
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |