__construct() public method

Use the ContainerBuilder to ease constructing the Container.
See also: ContainerBuilder
public __construct ( DI\Definition\Source\DefinitionSource $definitionSource, ProxyFactory $proxyFactory, Interop\Container\ContainerInterface $wrapperContainer = null )
$definitionSource DI\Definition\Source\DefinitionSource
$proxyFactory DI\Proxy\ProxyFactory
$wrapperContainer Interop\Container\ContainerInterface If the container is wrapped by another container.
Esempio n. 1
0
 public function __construct(\DI\Definition\Source\DefinitionSource $definitionSource, \DI\Proxy\ProxyFactory $proxyFactory, \Interop\Container\ContainerInterface $wrapperContainer = null)
 {
     parent::__construct($definitionSource, $proxyFactory, $wrapperContainer);
     $this->set(static::class, $this);
     $this->set(iContainer::class, $this);
 }
Esempio n. 2
0
 /**
  * @param DefinitionSource $definitionSource
  * @param ProxyFactory $proxyFactory
  * @param ContainerInterface $wrapperContainer
  */
 public function __construct(DefinitionSource $definitionSource, ProxyFactory $proxyFactory, ContainerInterface $wrapperContainer = null)
 {
     parent::__construct($definitionSource, $proxyFactory, $wrapperContainer);
     $this->set(Container::class, $this);
     $this->set(ContainerInteropInterface::class, $this);
 }