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