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


PHP Router::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Extends parent constructor to get documents service
  * as $container is private in parent class
  *
  * @param ReadSiteRepositoryInterface $siteRepository
  * @param CurrentSiteIdInterface      $currentSiteManager
  * @param ContainerInterface          $container
  * @param mixed                       $resource
  * @param array                       $options
  * @param RequestContext              $context
  */
 public function __construct(ReadSiteRepositoryInterface $siteRepository, CurrentSiteIdInterface $currentSiteManager, ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null)
 {
     parent::__construct($container, $resource, $options, $context);
     $this->siteRepository = $siteRepository;
     $this->currentSiteManager = $currentSiteManager;
     $this->requestStack = $container->get('request_stack');
     $this->nodeManager = $container->get('open_orchestra_front.manager.node');
 }
开发者ID:open-orchestra,项目名称:open-orchestra-front-bundle,代码行数:19,代码来源:OpenOrchestraRouter.php

示例2: __construct

 public function __construct(ContainerInterface $container, $resource, array $options = [], RequestContext $context = null)
 {
     $ch = $container->get('claroline.config.platform_config_handler');
     $this->host = $ch->getParameter('domain_name');
     $context = $context ?: new RequestContext();
     $sslEnabled = $ch->getParameter('ssl_enabled');
     $this->scheme = $sslEnabled ? 'https' : 'http';
     $this->buildContext($context);
     parent::__construct($container, $resource, $options, $context);
 }
开发者ID:claroline,项目名称:distribution,代码行数:10,代码来源:ClaroRouter.php

示例3: __construct

 /**
  * {@inheritDoc}
  */
 public function __construct(ContainerInterface $container, $resource, array $options = [], RequestContext $context = null)
 {
     $this->container = $container;
     parent::__construct($container, $resource, $options, $context);
 }
开发者ID:yoyosan,项目名称:BlablacarI18nRoutingBundle,代码行数:8,代码来源:Router.php

示例4: __construct

 /**
  * @param ContainerInterface $container
  * @param mixed $resource
  * @param array $options
  * @param RequestContext $context
  */
 public function __construct(ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null)
 {
     parent::__construct($container, $resource, $options, $context);
     $this->requestStack = $container->get('request_stack');
 }
开发者ID:eliberty,项目名称:api-bundle,代码行数:11,代码来源:ApiRouter.php

示例5: __construct

 public function __construct(ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null)
 {
     parent::__construct($container, $resource, $options, $context);
     $this->dataComposerMemory = $container->get('hdiv_security_bundle.hdiv_data_composer_memory');
     $this->HDIVConfig = $container->get('hdiv_security_bundle.hdiv_config');
 }
开发者ID:hdiv,项目名称:HDIVSecurityBundle,代码行数:6,代码来源:Router.php

示例6: __construct

 public function __construct(ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null, array $defaults = array())
 {
     parent::__construct($container, $resource, $options, $context, $defaults);
     $this->container = $container;
 }
开发者ID:natxet,项目名称:JMSI18nRoutingBundle,代码行数:5,代码来源:I18nRouter.php

示例7: __construct

 /**
  * ConditionalRouter constructor.
  *
  * @param ContainerInterface $container
  * @param mixed $resource
  * @param array $options
  * @param RequestContext|null $context
  */
 public function __construct(ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null)
 {
     // $this->loader is null at any moment, that is why we have to check whether there is conditional_router.routing_loader in the container
     $this->aContainer = $container;
     return parent::__construct($container, $resource, $options, $context);
 }
开发者ID:piotrpolak,项目名称:conditional-routing-bundle,代码行数:14,代码来源:ConditionalRouter.php


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