- Notifications
You must be signed in to change notification settings - Fork11
License
zfcampus/zf-configuration
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository has moved tolaminas-api-tools/api-tools-configuration.
zf-configuration is a module that provides configuration services that provide for theruntime management and modification of Zend Framework application configuration files.
Please see thecomposer.json file.
Run the followingcomposer command:
$composer require zfcampus/zf-configurationAlternately, manually add the following to yourcomposer.json, in therequire section:
"require":{"zfcampus/zf-configuration":"^1.2"}
And then runcomposer update to ensure the module is installed.
Finally, add the module name to your project'sconfig/application.config.php under themoduleskey:
return [/* ... */'modules' => [/* ... */'ZF\Configuration', ],/* ... */];
If you usezf-component-installer,that plugin will install zf-configuration as a module for you.
The top-level configuration key for user configuration of this module iszf-configuration.
'zf-configuration' => ['config_file' =>'config/autoload/development.php','enable_short_array' =>false,'class_name_scalars' =>false,],
Set this value to a booleantrue if you want to use PHP 5.4's square bracket (aka "short") arraysyntax.
- Since 1.2.1
Set this value to a booleantrue if you want to use PHP 5.5's class name scalars (::class notation).
There are no events or listeners.
ZF\Configuration\ConfigWriter is by default an instance ofZend\Config\Writer\PhpArray. Thisservice serves the purpose of providing the necessary dependencies forConfigResource andConfigResourceFactory.
ZF\Configuration\ConfigResource service is used for modifying an existing configuration files withmethods such aspatch() andreplace(). The service returned by the service manager is bound tothe file specified in theconfig_file key.
ZF\Configuration\ConfigResourceFactory is a factory service that provides consumers with theability to createZF\Configuration\ConfigResource objects, with dependencies injected for specificconfig files (not the one listed in themodule.config.php.
ZF\Configuration\ModuleUtils is a service that consumes theModuleManager and provides theability to traverse modules to find their path on disk as well as the path to their configurationfiles.
About
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.