public function __construct(FileLocatorInterface $locator, I18nRouteCollectionBuilder $collectionBuilder = null) { parent::__construct($locator); if ($collectionBuilder === null) { $collectionBuilder = new I18nRouteCollectionBuilder(); } $this->collectionBuilder = $collectionBuilder; }
/** * 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; }
/** * * @param FileLocatorInterface $locator */ public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel, $routeFileName = 'routing.yml') { parent::__construct($locator); $this->routeFileName = $routeFileName; $this->kernel = $kernel; }
/** * * @param FileLocatorInterface $locator */ public function __construct(FileLocatorInterface $locator, HttpKernelInterface $kernel) { parent::__construct($locator); $this->kernel = $kernel; }
public function __construct(FileLocatorInterface $locator, RestRouteProcessor $processor) { parent::__construct($locator); $this->processor = $processor; }
/** * 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; }
/** * @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; }
/** * @param FileLocatorInterface $locator * @param ParameterBagInterface|null $parameterBag */ public function __construct(FileLocatorInterface $locator, ParameterBagInterface $parameterBag = null) { parent::__construct($locator); $this->parameterBag = $parameterBag; }