protected function transformDependency(ReflectionParameter $parameter, $parameters)
    {
        // Get owner class
        $class = $parameter->getClass();

        // We skip parameters with a type hint to avoid replacing model bindings
        if ($class && !$this->alreadyInParameters($class->name, $parameters)) {
            return $this->container->make($class->name);
        }

        return null;
    }
protected function transformDependency(ReflectionParameter $parameter, $parameters)
    {
        // Get owner class
        $class = $parameter->getClass();

        // We skip parameters with a type hint to avoid replacing model bindings
        if ($class && !$this->alreadyInParameters($class->name, $parameters)) {
            return $this->container->make($class->name);
        }

        return null;
    }
protected function transformDependency ( ReflectionParameter $ parameter , $ parameters ) { // Get owner class $ class = $ parameter -> getClass ( ) ; // We skip parameters with a type hint to avoid replacing model bindings if ( $ class && ! $ this -> alreadyInParameters ( $ class -> name , $ parameters ) ) { return $ this -> container -> make ( $ class -> name ) ; } return null ; }
Transform the given parameter into a class instance.

@param ReflectionParameter $parameter
@param array               $parameters

@return mixed|null
Transform the given parameter into a class instance .