当前位置: 首页>>代码示例>>PHP>>正文


PHP ControllerResolver::__construct方法代码示例

本文整理汇总了PHP中Symfony\Component\HttpKernel\Controller\ControllerResolver::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ControllerResolver::__construct方法的具体用法?PHP ControllerResolver::__construct怎么用?PHP ControllerResolver::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\HttpKernel\Controller\ControllerResolver的用法示例。


在下文中一共展示了ControllerResolver::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 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);
 }
开发者ID:nagi88,项目名称:controller-resolver-inject-constructor,代码行数:14,代码来源:DecoratorControllerResolverSymfony.php

示例2: __construct

 public function __construct($namespace = null, $logger = null)
 {
     if ($namespace) {
         $this->defaultNamespace = $namespace;
     }
     parent::__construct($logger);
 }
开发者ID:truss,项目名称:truss,代码行数:7,代码来源:DynamicControllerResolver.php

示例3: __construct

 /**
  * 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);
 }
开发者ID:netixpro,项目名称:symfony,代码行数:14,代码来源:ControllerResolver.php

示例4: __construct

 public function __construct(ContainerInterface $container, ControllerNameParser $parser, LoggerInterface $logger = null)
 {
     $this->container = $container;
     $this->parser = $parser;
     parent::__construct($logger);
 }
开发者ID:Cronverk,项目名称:lr_application,代码行数:6,代码来源:classes.php

示例5: __construct

 /**
  * 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);
 }
开发者ID:tpobozy,项目名称:symfony3-legacy,代码行数:12,代码来源:ControllerResolver.php

示例6: __construct

 /**
  * 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);
 }
开发者ID:abouthalf,项目名称:archies-recipes,代码行数:11,代码来源:ControllerResolver.php

示例7: __construct

 /**
  * 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);
 }
开发者ID:davidsoloman,项目名称:drupalconsole.com,代码行数:13,代码来源:ControllerResolver.php

示例8: __construct

 /**
  * 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);
 }
开发者ID:code-ph0y,项目名称:framework,代码行数:13,代码来源:ControllerResolver.php

示例9: __construct

 public function __construct(InjectorInterface $injector, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->injector = $injector;
 }
开发者ID:brodaproject,项目名称:broda,代码行数:5,代码来源:ControllerResolver.php

示例10: __construct

 public function __construct(Application $app)
 {
     $logger = null;
     $this->app = $app;
     parent::__construct($logger);
 }
开发者ID:radvance,项目名称:radvance,代码行数:6,代码来源:ControllerResolver.php


注:本文中的Symfony\Component\HttpKernel\Controller\ControllerResolver::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。