src/Container.php
protected function resolve(string $abstract, ReflectionParameter $dependency)
    {
        $key = $abstract.$dependency->name;

        if (! isset($this->resolved[$key])) {
            $this->resolved[$key] = $this->generate($abstract, $dependency);
        }

        return $this->resolved[$key]($this);
    }
protected function resolve(string $abstract, ReflectionParameter $dependency)
    {
        $key = $abstract.$dependency->name;

        if (! isset($this->resolved[$key])) {
            $this->resolved[$key] = $this->generate($abstract, $dependency);
        }

        return $this->resolved[$key]($this);
    }
protected function resolve ( string $ abstract , ReflectionParameter $ dependency ) { $ key = $ abstract . $ dependency -> name ; if ( ! isset ( $ this -> resolved [ $ key ] ) ) { $ this -> resolved [ $ key ] = $ this -> generate ( $ abstract , $ dependency ) ; } return $ this -> resolved [ $ key ] ( $ this ) ; }
Resolve all the given class reflected dependencies.

@param string               $abstract   The class name or container element name to resolve dependencies.
@param ReflectionParameter  $dependency The class dependency to be resolved.

@throws ContainerException When a dependency cannot be solved.
@return Object
Resolve all the given class reflected dependencies .