src/Container/ReflectionContainer.php
protected function arguments($reflector, $parameters = array())
    {
        $arguments = array();

        foreach ($reflector->getParameters() as $key => $parameter) {
            $class = $parameter->getClass();

            $name = $class ? $class->getName() : $parameter->getName();

            $argument = $this->argument($parameter, $name);

            $exists = array_key_exists($name, $parameters);

            $arguments[$key] = $exists ? $parameters[$name] : $argument;
        }

        return $arguments;
    }
protected function arguments($reflector, $parameters = array())
    {
        $arguments = array();

        foreach ($reflector->getParameters() as $key => $parameter) {
            $class = $parameter->getClass();

            $name = $class ? $class->getName() : $parameter->getName();

            $argument = $this->argument($parameter, $name);

            $exists = array_key_exists($name, $parameters);

            $arguments[$key] = $exists ? $parameters[$name] : $argument;
        }

        return $arguments;
    }
Resolves the specified parameters from a container.

@param  \ReflectionFunction|\ReflectionMethod $reflector
@param  array                                 $parameters
@return array