Download the PHP package rch/config-access-bundle without Composer
On this page you can find all versions of the php package rch/config-access-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package config-access-bundle
RCHConfigAccessBundle
Retrieve final configuration values from any container-aware context.
Why?
In Symfony, when you need to get the value of any configuration (default in app/config
) the answer is always parameters.
But, what about the final configuration? After that the DI container has been compiled? After that compiler passes and bundle extensions changed it or merged it with a default one?
Actuall there is no solution excepted processing the whole configuration of a bundle each time you need it, even partially. This bundle is intended to solve this problem.
Related issues:
- Symfony2 accessing variables defined in config? (Stack Overflow)
- How do I read configuration settings from symfony2 config? (Stack Overflow)
Installation
Download the bundle
This command requires you to have Composer installed globally.
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Usage
Get configuration values
Inject them into your services
Contributing
Guidelines
License
The code is released under the MIT license.
For the whole copyright, see the distributed LICENSE file.
All versions of config-access-bundle with dependencies
doctrine/collections Version ~1.3
symfony/framework-bundle Version ~2.8|~3.1
symfony/dependency-injection Version ~2.8|~3.1
symfony/config Version ~2.8|~3.1
symfony/expression-language Version ~2.8|~3.1
symfony/http-kernel Version ~2.8|~3.1
symfony/cache Version ~3.1