예제 #1
0
 /**
  * Constructor.
  *
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     $this->container = $container;
     $this->parameter = $container->getParameterBag();
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container = null)
 {
     $this->container = $container ?: new Container(null, $this);
     $this->resolver = $this->container->getParameterBag()->getResolver();
     $this->injector = new Injector($this->container);
 }