added reload function to loader everything function.
This commit is contained in:
parent
b55e5169f3
commit
e060c3d1da
|
@ -51,11 +51,12 @@ private function load_nested_routes($uri)
|
||||||
* 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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue