예제 #1
0
 /**
  * Add routes to the router
  * @param Loader $loader
  * @return RouteCollection
  */
 public function addAdminRoutes(Loader $loader)
 {
     $moduleRoutes = $loader->import('@LineStormPageBundle/Resources/config/routing/admin.yml', 'yaml');
     // import all the component routes
     foreach ($this->components as $component) {
         $routes = $component->getAdminRoutes($loader);
         if ($routes instanceof RouteCollection) {
             $moduleRoutes->addCollection($routes);
         }
     }
     return $moduleRoutes;
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function addAdminRoutes(Loader $loader)
 {
     return $loader->import('@LineStormMediaBundle/Resources/config/routing/admin.yml', 'yaml');
 }
 /**
  * @inheritdoc
  */
 public function getRoutes(Loader $loader)
 {
     return $loader->import('@LineStormPollComponentBundle/Resources/config/routing/api.yml', 'rest');
 }
 private function loadConfigFiles(Loader $loader, array $files)
 {
     foreach ($files as $file) {
         $loader->load($file);
     }
 }
 /**
  * @inheritdoc
  */
 public function getRoutes(Loader $loader)
 {
     return $loader->import('@LineStormTagComponentBundle/Resources/config/routing.yml', 'yaml');
 }
예제 #6
0
 /**
  * @param mixed $path
  *
  * @return void
  */
 public function addRoutes($path)
 {
     $this->collection->addCollection($this->loader->import($path));
 }