예제 #1
0
파일: Module.php 프로젝트: khasinski/Iphp
 protected function importRoutes($resource, $type = null)
 {
     //print '-'.$resource.'--'.$type;
     $routes = $this->moduleManager->loadRoutes($resource, $type);
     // print 'В итоге роуты ресурса '.$resource;
     //var_dump ($routes);
     //exit();
     if ($routes) {
         foreach ($routes->all() as $name => $route) {
             $this->routeCollection->add($name, $route);
         }
     }
 }