Пример #1
0
 /**
  * Add a route to the collection.
  *
  * @param Route $route
  */
 public function addRoute($route)
 {
     $this->routes->add($route);
 }
Пример #2
0
 /**
  * Add a route to the underlying route collection.
  *
  * @param array|string          $methods
  * @param string                $uri
  * @param \Closure|array|string $action
  *
  * @return Route
  */
 protected function addRoute($methods, $uri, $action)
 {
     return $this->routes->add(new Route($methods, $uri, $action));
 }