本文整理汇总了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);
}
示例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);
}
示例4: __construct
public function __construct(ContainerInterface $container, ControllerNameParser $parser, LoggerInterface $logger = null)
{
$this->container = $container;
$this->parser = $parser;
parent::__construct($logger);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例9: __construct
public function __construct(InjectorInterface $injector, LoggerInterface $logger = null)
{
parent::__construct($logger);
$this->injector = $injector;
}
示例10: __construct
public function __construct(Application $app)
{
$logger = null;
$this->app = $app;
parent::__construct($logger);
}