Commit e060c3d1 authored by Taylor Otwell's avatar Taylor Otwell

added reload function to loader everything function.

parent b55e5169
...@@ -51,11 +51,12 @@ class Loader { ...@@ -51,11 +51,12 @@ class Loader {
* To improve performance, this operation will only be performed once. The routes * To improve performance, this operation will only be performed once. The routes
* will be cached and returned on every subsequent call. * will be cached and returned on every subsequent call.
* *
* @param bool $reload
* @return array * @return array
*/ */
public static function everything() public static function everything($reload = false)
{ {
if ( ! is_null(static::$routes)) return static::$routes; if ( ! is_null(static::$routes) and ! $reload) return static::$routes;
$routes = require APP_PATH.'routes'.EXT; $routes = require APP_PATH.'routes'.EXT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment