__construct() public method

Constructor.
public __construct ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface A LoggerInterface instance
 /**
  * Constructor.
  * 
  * @param \Silex\Application $app instance Application Silex 
  * @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
  * @param LoggerInterface $logger A LoggerInterface instance
  */
 public function __construct(ControllerResolverInterface $resolver, Application $app, LoggerInterface $logger = null)
 {
     $this->logger = $logger;
     $this->app = $app;
     $this->controllerResolver = $resolver;
     parent::__construct($logger);
 }
コード例 #2
0
 public function __construct($namespace = null, $logger = null)
 {
     if ($namespace) {
         $this->defaultNamespace = $namespace;
     }
     parent::__construct($logger);
 }
コード例 #3
0
 /**
  * Constructor.
  *
  * @param ContainerInterface      $container A ContainerInterface instance
  * @param ControllerNameConverter $converter A ControllerNameConverter instance
  * @param LoggerInterface         $logger    A LoggerInterface instance
  */
 public function __construct(ContainerInterface $container, ControllerNameConverter $converter, LoggerInterface $logger = null)
 {
     $this->container = $container;
     $this->converter = $converter;
     $this->esiSupport = $container->has('esi') && $container->getEsiService()->hasSurrogateEsiCapability($container->getRequestService());
     parent::__construct($logger);
 }
コード例 #4
0
ファイル: classes.php プロジェクト: Cronverk/lr_application
 public function __construct(ContainerInterface $container, ControllerNameParser $parser, LoggerInterface $logger = null)
 {
     $this->container = $container;
     $this->parser = $parser;
     parent::__construct($logger);
 }
コード例 #5
0
 /**
  * Constructor.
  *
  * @param ContainerInterface   $container A ContainerInterface instance
  * @param ControllerNameParser $parser    A ControllerNameParser instance
  * @param LoggerInterface      $logger    A LoggerInterface instance
  */
 public function __construct(ContainerInterface $container, LoggerInterface $logger = null)
 {
     $this->container = $container;
     parent::__construct($logger);
 }
コード例 #6
0
 /**
  * Constructor.
  *
  * @param Application     $app    An Application instance
  * @param LoggerInterface $logger A LoggerInterface instance
  */
 public function __construct(Application $app, LoggerInterface $logger = null)
 {
     $this->app = $app;
     parent::__construct($logger);
 }
コード例 #7
0
 /**
  * Constructs a new ControllerResolver.
  *
  * @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
  *   The class resolver.
  * @param \Psr\Log\LoggerInterface $logger
  *   (optional) A LoggerInterface instance.
  */
 public function __construct(ClassResolverInterface $class_resolver, LoggerInterface $logger = NULL)
 {
     $this->classResolver = $class_resolver;
     parent::__construct($logger);
 }
コード例 #8
0
 /**
  * Constructor.
  *
  * @param ServiceLocatorInterface $serviceManager A ServiceLocatorInterface instance
  * @param ControllerNameParser    $parser         A ControllerNameParser instance
  * @param LoggerInterface         $logger         A LoggerInterface instance
  */
 public function __construct(ServiceLocatorInterface $serviceManager, ControllerNameParser $parser, LoggerInterface $logger = null)
 {
     $this->serviceManager = $serviceManager;
     $this->parser = $parser;
     parent::__construct($logger);
 }
コード例 #9
0
 public function __construct(InjectorInterface $injector, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->injector = $injector;
 }
コード例 #10
0
 public function __construct(Application $app)
 {
     $logger = null;
     $this->app = $app;
     parent::__construct($logger);
 }