Skip to content

Commit

Permalink
Merge pull request #11 from zandzpider/patch-1
Browse files Browse the repository at this point in the history
Pass Router to callback
  • Loading branch information
Maarten Staa committed Apr 15, 2015
2 parents 32f0f3e + 12f7c36 commit 511dc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function cache($filename, Closure $callback, $cacheMinutes = 1440)
$this->routes->saveRouteCollection();

// Call closure to define routes that should be cached.
$callback();
call_user_func($callback, $this);

// Put routes in cache.
$cache = $this->routes->getCacheableRoutes();
Expand Down

0 comments on commit 511dc65

Please sign in to comment.