src/RawPHP/RawContainer/Container.php
protected function addDependencyForCallParameter( ReflectionParameter $parameter, array &$parameters, array &$dependencies )
    {
        if ( array_key_exists( $parameter->name, $parameters ) )
        {
            $dependencies[ ] = $parameters[ $parameter->name ];
        }
        elseif ( $parameter->getClass() )
        {
            $dependencies[ ] = $this->make( $parameter->getClass()->name );
        }
        elseif ( $parameter->isDefaultValueAvailable() )
        {
            $dependencies[ ] = $parameter->getDefaultValue();
        }
    }
protected function addDependencyForCallParameter( ReflectionParameter $parameter, array &$parameters, array &$dependencies )
    {
        if ( array_key_exists( $parameter->name, $parameters ) )
        {
            $dependencies[ ] = $parameters[ $parameter->name ];
        }
        elseif ( $parameter->getClass() )
        {
            $dependencies[ ] = $this->make( $parameter->getClass()->name );
        }
        elseif ( $parameter->isDefaultValueAvailable() )
        {
            $dependencies[ ] = $parameter->getDefaultValue();
        }
    }
Get the dependency for the given call parameter.

@param ReflectionParameter $parameter
@param array               $parameters
@param array               $dependencies