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


PHP YamlFileLoader::__construct方法代码示例

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


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

示例1: __construct

 public function __construct(FileLocatorInterface $locator, I18nRouteCollectionBuilder $collectionBuilder = null)
 {
     parent::__construct($locator);
     if ($collectionBuilder === null) {
         $collectionBuilder = new I18nRouteCollectionBuilder();
     }
     $this->collectionBuilder = $collectionBuilder;
 }
开发者ID:7rin0,项目名称:BeSimpleI18nRoutingBundle,代码行数:8,代码来源:YamlFileLoader.php

示例2: __construct

 /**
  * Initializes yaml loader.
  *
  * @param FileLocatorInterface $locator       locator
  * @param RestRouteProcessor   $processor     route processor
  * @param boolean              $includeFormat whether or not the requested view format must be included in the route path
  * @param string[]             $formats       supported view formats
  * @param string               $defaultFormat default view format
  */
 public function __construct(FileLocatorInterface $locator, RestRouteProcessor $processor, $includeFormat = true, array $formats = array(), $defaultFormat = null)
 {
     parent::__construct($locator);
     $this->processor = $processor;
     $this->includeFormat = $includeFormat;
     $this->formats = $formats;
     $this->defaultFormat = $defaultFormat;
 }
开发者ID:kasobus,项目名称:EDENS-Mautic,代码行数:17,代码来源:RestYamlCollectionLoader.php

示例3: __construct

 /**
  *
  * @param FileLocatorInterface $locator
  */
 public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel, $routeFileName = 'routing.yml')
 {
     parent::__construct($locator);
     $this->routeFileName = $routeFileName;
     $this->kernel = $kernel;
 }
开发者ID:mathielen,项目名称:symfony-extra,代码行数:10,代码来源:RouteAutoLoader.php

示例4: __construct

 /**
  *
  * @param FileLocatorInterface $locator
  */
 public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel)
 {
     parent::__construct($locator);
     $this->kernel = $kernel;
 }
开发者ID:noglitchyo,项目名称:pim-community-dev,代码行数:9,代码来源:OroAutoLoader.php

示例5: __construct

 public function __construct(FileLocatorInterface $locator, RestRouteProcessor $processor)
 {
     parent::__construct($locator);
     $this->processor = $processor;
 }
开发者ID:richardmiller,项目名称:FOSRestBundle,代码行数:5,代码来源:RestYamlCollectionLoader.php

示例6: __construct

 /**
  * Initializes routing loader.
  *
  * @param RadAppKernel         $kernel  Kernel instance
  * @param FileLocatorInterface $locator File locator
  */
 public function __construct(RadAppKernel $kernel, FileLocatorInterface $locator)
 {
     parent::__construct($locator);
     $this->kernel = $kernel;
 }
开发者ID:nmariani,项目名称:KnpRadBundle,代码行数:11,代码来源:AppBundleLoader.php

示例7: __construct

 /**
  * @param FileLocatorInterface $locator
  * @param I18nLoaderHelper $helper
  * @param Registry $registry
  */
 public function __construct(FileLocatorInterface $locator, I18nLoaderHelper $helper, Registry $registry)
 {
     parent::__construct($locator);
     $this->helper = $helper;
     $this->registry = $registry;
 }
开发者ID:leapt,项目名称:i18n-bundle,代码行数:11,代码来源:I18nYamlFileLoader.php

示例8: __construct

 /**
  * @param FileLocatorInterface       $locator
  * @param ParameterBagInterface|null $parameterBag
  */
 public function __construct(FileLocatorInterface $locator, ParameterBagInterface $parameterBag = null)
 {
     parent::__construct($locator);
     $this->parameterBag = $parameterBag;
 }
开发者ID:inbep,项目名称:routing-service-provider,代码行数:9,代码来源:YamlFileLoader.php


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