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