當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。