/**
  * Constructor.
  *
  * @param ContainerInterface $container A ContainerInterface instance
  * @param Stopwatch          $stopwatch A Stopwatch instance
  * @param LoggerInterface    $logger    A LoggerInterface instance
  */
 public function __construct(ContainerInterface $container, Stopwatch $stopwatch, LoggerInterface $logger = null)
 {
     parent::__construct($container);
     $this->stopwatch = $stopwatch;
     $this->logger = $logger;
     $this->called = array();
 }
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
     $this->kernel = $container->get('kernel');
 }
 public function __construct(ContainerInterface $container, IInvoker $invoker)
 {
     parent::__construct($container);
     $this->invoker = $invoker;
 }
Ejemplo n.º 4
0
 /**
  * @Inject({"@service_container"})
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
 }