Skip to content

Commit

Permalink
Added a way to override the current Route
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc André Audet committed Jun 9, 2015
1 parent 8175256 commit 5ca9d69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/Cervo/Libraries/Router.php
Expand Up @@ -403,4 +403,10 @@ public function getPreventDefault()
{
return $this->prevent_default;
}

public function overrideRoute(Route $route)
{
$this->route = $route;
$this->runEvents();
}
}

0 comments on commit 5ca9d69

Please sign in to comment.