Exemplo n.º 1
0
 /**
  * @return \Nano\Route\Section\Common
  * @param string $method
  * @param \Nano\Route\Common $route
  */
 public function addRoute($method, \Nano\Route\Common $route)
 {
     $key = strToLower($method);
     if (!$this->routes->offsetExists($key)) {
         $this->routes->offsetSet($key, new \ArrayObject());
     }
     $this->routes->offsetGet($key)->append($route);
     return $this;
 }