Esempio n. 1
0
 public function addService(RouteCollectionItem $route)
 {
     $uri = $route->getURI();
     $method = $route->getMethod();
     if ($route->getURI() == '/') {
         $uri = '';
     }
     if ($route->getMethod() == 'GET' && $route->getAction() == 'show') {
         $method = "SHOW";
     }
     $this->container['service'][$route->getController()][] = array('URL' => $uri, 'method' => $method);
     return $this;
 }
 public function whenStatement(RouteCollectionItem $route)
 {
     $this->container['when'][] = array('uri' => $route->getURI(), 'templateUrl' => $route->getTemplateURL(), 'controller' => $route->getController());
     return $this;
 }