added reload function to loader everything function.

This commit is contained in:
Taylor Otwell 2011-07-31 23:11:45 -05:00
parent b55e5169f3
commit e060c3d1da
1 changed files with 3 additions and 2 deletions

View File

@ -51,11 +51,12 @@ private function load_nested_routes($uri)
* To improve performance, this operation will only be performed once. The routes
* will be cached and returned on every subsequent call.
*
* @param bool $reload
* @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;