Config
Config copied to clipboard
A powerful, small, deadly simple configurator and dependency injection container DSL made to be easy
Start using _Respect/Doc_ into project, this implies into: - Making many `public` method `protected` - Creating better unit tests to be used as examples - Adding little PHPDoc to some...
An excpetion was throwed when try to construct an object with only one parameter at constructor and it being a reference to another object. ``` ini [productRepository \Develop\Business\Application\Product\Repositories\Product] __construct =...
What about include config considered a dependency which may have values referenced and thus should be processed first. The result will be a combination of settings perhaps in the form:...
Needs some tests, but it seems that something like `foo = [[baz]]` isn't expanding the `baz` variable properly. Output should be something compatible to `$container->foo = array($container->baz)`.
The Respect\Config\Instantiator class is missing key APIs: - serialize/unserialize, so containers can be serialized and cached. - APIs for getConstructorParams(), getMethodCalls(), getStaticMethodCalls() and getProperties() so the Instantiator can be inspected.
``` Code Coverage Report 2013-02-22 02:17:33 Summary: Classes: 100.00% (2/2) Methods: 100.00% (50/50) Lines: 100.00% (255/255) \Respect\Config::Container Methods: 100.00% (32/32) Lines: 100.00% (170/170) \Respect\Config::Instantiator Methods: 100.00% (18/18) Lines: 100.00% (...
We should keep a nice and small subset of guidelines on wrtting INI files, mainly to be used as a requirement to make a INI a Respected, thought something like...
We should validate INI files by providing a way to run something similar to a Lint tool on configuration files...
At some point, we're going to need cache for containers. I have absolutely no plans to include a cache library inside the Config's core, but the Container and Instantiators need...