/**
  * Initializes xml 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;
 }
 public function __construct(FileLocatorInterface $locator, I18nRouteCollectionBuilder $collectionBuilder = null)
 {
     parent::__construct($locator);
     if ($collectionBuilder === null) {
         $collectionBuilder = new I18nRouteCollectionBuilder();
     }
     $this->collectionBuilder = $collectionBuilder;
 }
Esempio n. 3
0
 public function __construct(FileLocatorInterface $locator, RestRouteProcessor $processor)
 {
     parent::__construct($locator);
     $this->processor = $processor;
 }