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

Matching namespaced references #51

Closed alganet closed 9 years ago

alganet commented 9 years ago

Problem:

[instanceof Foo\Bar]
baz = something

[lorem Foo\Ipsum]
baz = [Foo\Bar] ; not a valid name

Quick Fix:

    protected function matchReference(&$value)
    {
        if (preg_match('/^\[([[:alnum:]\\\\]+)\]$/', $value, $match)) {
            return (boolean) ($value = $match[1]);
        }
    }

Still digging the problem.

jackmakiyama commented 9 years ago

@alganet PR #52 fixes this issue? Can you close this issue please?

/cc @henriquemoody

henriquemoody commented 9 years ago

Thanks for reporting, @jackmakiyama

jackmakiyama commented 9 years ago

:beers: