DI\Definition\Resolver\FactoryResolver::__construct PHP Method

__construct() public method

The resolver needs a container. This container will be passed to the factory as a parameter so that the factory can access other entries of the container.
public __construct ( Interop\Container\ContainerInterface $container, DI\Definition\Resolver\DefinitionResolver $resolver )
$container Interop\Container\ContainerInterface
$resolver DI\Definition\Resolver\DefinitionResolver
    public function __construct(ContainerInterface $container, DefinitionResolver $resolver)
    {
        $this->container = $container;
        $this->resolver = $resolver;
    }