コード例 #1
0
ファイル: RouteCollection.php プロジェクト: laasti/directions
 protected function saveCurrentRoute()
 {
     if ($this->currentRoute instanceof Route) {
         $name = $this->currentRoute->getName();
         if (!is_null($name)) {
             $this->namedRoutes[$name] = $this->currentRoute;
         }
     }
 }
コード例 #2
0
ファイル: Router.php プロジェクト: laasti/directions
 /**
  *
  * @param \Laasti\Directions\Route $route
  */
 public function dispatchRoute(Route $route)
 {
     return $route->callStrategy();
 }