Ejemplo n.º 1
0
 /**
  * @param string                 $controller
  * @param LastError              $lastError
  * @param LoggerInterface        $loggerDb
  * @param RouterInterface        $router
  * @param FlashBagInterface|null $flashBag
  * @param string                 $mode
  */
 public function __construct($controller, LastError $lastError, LoggerInterface $loggerDb, RouterInterface $router, FlashBagInterface $flashBag = null, $mode = 'dev')
 {
     $this->lastError = $lastError;
     $this->loggerDb = $loggerDb;
     $this->router = $router;
     $this->flashBag = $flashBag;
     $this->mode = $mode;
     parent::__construct($controller, null);
 }
 /**
  * To avoid conflict between , the logger param is not typed:
  *  The parent class needs and instance of `Psr\Log\LoggerInterface` from Symfony 2.2,
  *  before logger is an instance of `Symfony\Component\HttpKernel\Log\LoggerInterface`.
  *
  * @param ContainerInterface $container  A ContainerInterface instance
  * @param string             $controller The controller name to call
  * @param LoggerInterface    $logger     A logger instance
  */
 public function __construct(ContainerInterface $container, $controller, $logger)
 {
     parent::__construct($controller, $logger);
     $this->container = $container;
 }
Ejemplo n.º 3
0
 public function __construct(EngineInterface $templating, array $easyAdminConfig, $controller, LoggerInterface $logger = null)
 {
     $this->templating = $templating;
     $this->easyAdminConfig = $easyAdminConfig;
     parent::__construct($controller, $logger);
 }
Ejemplo n.º 4
0
 /**
  * Constructor.
  *
  * @param array           $formats    An array with keys corresponding to request formats or content types
  *                                    that must be processed by this listener
  * @param string          $challenge
  * @param string          $controller
  * @param LoggerInterface $logger
  */
 public function __construct($formats, $challenge, $controller, LoggerInterface $logger = null)
 {
     $this->formats = $formats;
     $this->challenge = $challenge;
     parent::__construct($controller, $logger);
 }
 public function __construct(EngineInterface $templating, $controller, LoggerInterface $logger = null)
 {
     $this->templating = $templating;
     parent::__construct($controller, $logger);
 }
Ejemplo n.º 6
0
 public function __construct($controller, LoggerInterface $logger = null)
 {
     parent::__construct($controller, $logger);
 }
 /**
  * @param TokenStorageInterface $tokenStorage
  * @param LoggerInterface       $logger
  */
 public function __construct(TokenStorageInterface $tokenStorage, LoggerInterface $logger = null)
 {
     parent::__construct('clastic.backoffice.controller.exception:showAction', $logger);
 }