Skip to content

Commit

Permalink
Load routes before trying to get a list of routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 5, 2015
1 parent 6af3378 commit 3040815
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Routing/Router.php
Expand Up @@ -950,6 +950,9 @@ public static function plugin($name, $options = [], $callback = null)
*/
public static function routes()
{
if (!static::$initialized) {
static::_loadRoutes();
}
return static::$_collection->routes();
}

Expand Down

0 comments on commit 3040815

Please sign in to comment.