src/Config/Loader/ClassLoader/Resolver/ConstructorResolver.php
public function hashToArgsArray($hashOfOptions)
    {
        $optionsArray = new \SplFixedArray(count($hashOfOptions));

        foreach ($this->constructorArgs as $name => $param) {
            $optionsArray[$param->getPosition()] = $hashOfOptions[$name];
        }

        return $optionsArray->toArray();
    }
public function hashToArgsArray($hashOfOptions)
    {
        $optionsArray = new \SplFixedArray(count($hashOfOptions));

        foreach ($this->constructorArgs as $name => $param) {
            $optionsArray[$param->getPosition()] = $hashOfOptions[$name];
        }

        return $optionsArray->toArray();
    }
public function hashToArgsArray ( $ hashOfOptions ) { $ optionsArray = new \ SplFixedArray ( count ( $ hashOfOptions ) ) ; foreach ( $ this -> constructorArgs as $ name => $ param ) { $ optionsArray [ $ param -> getPosition ( ) ] = $ hashOfOptions [ $ name ] ; } return $ optionsArray -> toArray ( ) ; }
Loops through constructor args and buid an ordered array of args using
the option values passed in. We assume the passed in array has been resolved already.
i.e. That the arg name has an entry in the option array.

@param  array $hashOfOptions Array of options

@return array Array of ordered args
Loops through constructor args and buid an ordered array of args using the option values passed in . We assume the passed in array has been resolved already . i . e . That the arg name has an entry in the option array .