本文整理匯總了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);
}