本文整理汇总了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;
}
示例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;
}
示例3: __construct
/**
*
* @param FileLocatorInterface $locator
*/
public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel, $routeFileName = 'routing.yml')
{
parent::__construct($locator);
$this->routeFileName = $routeFileName;
$this->kernel = $kernel;
}
示例4: __construct
/**
*
* @param FileLocatorInterface $locator
*/
public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel)
{
parent::__construct($locator);
$this->kernel = $kernel;
}
示例5: __construct
public function __construct(FileLocatorInterface $locator, RestRouteProcessor $processor)
{
parent::__construct($locator);
$this->processor = $processor;
}
示例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;
}
示例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;
}
示例8: __construct
/**
* @param FileLocatorInterface $locator
* @param ParameterBagInterface|null $parameterBag
*/
public function __construct(FileLocatorInterface $locator, ParameterBagInterface $parameterBag = null)
{
parent::__construct($locator);
$this->parameterBag = $parameterBag;
}