예제 #1
0
 public function load($file, $type = null)
 {
     $routes = new RouteCollection();
     foreach ($this->kernel->getBundles() as $bundle) {
         $path = $bundle->getPath() . '/Resources/config/' . $this->routeFileName;
         if (is_file($path)) {
             $routes->addCollection(parent::load($path, $type));
         }
     }
     return $routes;
 }