Respect / Config

A powerful, small, deadly simple configurator and dependency injection container DSL made to be easy
http://respect.github.io/Config
Other
98 stars 7 forks source link

Reusing lazyLoaded instances bug #50

Closed alganet closed 9 years ago

alganet commented 9 years ago

Problem: A config file cannot reference keys already loaded by another files.

Fix on Container.php:

    protected function parseValue($value)
    {
        if ($value instanceof Instantiator) {
            return $value;
        } elseif (is_array($value)) {
            return $this->parseSubValues($value);
        } elseif (empty($value)) {
            return null;
        } else {
            return $this->parseSingleValue($value);
        }
    }

Still gathering more information.