Example #1
0
 protected function saveCurrentRoute()
 {
     if ($this->currentRoute instanceof Route) {
         $name = $this->currentRoute->getName();
         if (!is_null($name)) {
             $this->namedRoutes[$name] = $this->currentRoute;
         }
     }
 }
Example #2
0
 /**
  *
  * @param \Laasti\Directions\Route $route
  */
 public function dispatchRoute(Route $route)
 {
     return $route->callStrategy();
 }