__construct() публичный Метод

Constructor
public __construct ( EventDispatcher $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An event dispatcher instance
$resolver Symfony\Component\HttpKernel\Controller\ControllerResolverInterface A ControllerResolverInterface instance
Пример #1
0
 public function __construct($body, $status, $headers, \Closure $customizer = null)
 {
     $this->body = $body;
     $this->status = $status;
     $this->headers = $headers;
     $this->customizer = $customizer;
     $this->called = false;
     parent::__construct(new EventDispatcher(), $this);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct(new EventDispatcher(), $this);
 }
Пример #3
0
 /**
  * Constructor
  *
  * @param ContainerInterface          $container An ContainerInterface instance
  * @param EventDispatcher             $dispatcher An event dispatcher instance
  * @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
  */
 public function __construct(ContainerInterface $container, EventDispatcher $dispatcher, ControllerResolverInterface $resolver)
 {
     $this->container = $container;
     parent::__construct($dispatcher, $resolver);
 }