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