src/Config/Loader/ClassLoader/Resolver/ConstructorResolver.php
public function resolve(array $options)
    {
        $reflectedClassName = $this->reflected->getName();

        // We check if that constructor has been configured before and is in the registry
        if (!isset(self::$resolvers[$reflectedClassName])) {
            self::$resolvers[$reflectedClassName] = new OptionsResolver();

            $this->configureOptions(self::$resolvers[$reflectedClassName]);
        }

        return $this->hashToArgsArray(
            self::$resolvers[$reflectedClassName]->resolve($options)
        );
    }
public function resolve(array $options)
    {
        $reflectedClassName = $this->reflected->getName();

        // We check if that constructor has been configured before and is in the registry
        if (!isset(self::$resolvers[$reflectedClassName])) {
            self::$resolvers[$reflectedClassName] = new OptionsResolver();

            $this->configureOptions(self::$resolvers[$reflectedClassName]);
        }

        return $this->hashToArgsArray(
            self::$resolvers[$reflectedClassName]->resolve($options)
        );
    }
public function resolve ( array $ options ) { $ reflectedClassName = $ this -> reflected -> getName ( ) ; // We check if that constructor has been configured before and is in the registry if ( ! isset ( self :: $ resolvers [ $ reflectedClassName ] ) ) { self :: $ resolvers [ $ reflectedClassName ] = new OptionsResolver ( ) ; $ this -> configureOptions ( self :: $ resolvers [ $ reflectedClassName ] ) ; } return $ this -> hashToArgsArray ( self :: $ resolvers [ $ reflectedClassName ] -> resolve ( $ options ) ) ; }
Resolve options against constructor args

@param  array $options Array of option values. Expected array looks like:
array(
'someParam' => 'def',
'someOtherParam' => 'sdsad'
)

@return array Array of resolved ordered args
Resolve options against constructor args