Mudanças das rotas
This commit is contained in:
@@ -12,7 +12,7 @@ RouteCollection::cli('/core/purge/[h:module]', function($module){
|
||||
});
|
||||
|
||||
RouteCollection::cli('/core/routes', function(){
|
||||
foreach(RouteCollection::return_routes() as $route){
|
||||
foreach(RouteCollection::returnRoutes() as $route){
|
||||
echo str_pad( implode(',', $route->_verb), 10) . "| $route->_uri \n";
|
||||
}
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@ RouteCollection::cli('sanity/install', function() {
|
||||
Migrator::getInstance()->execute_plan();
|
||||
|
||||
Wrapper::commit();
|
||||
})->middleware_ignore('auth');
|
||||
})->middlewareIgnore('auth');
|
||||
|
||||
|
||||
RouteCollection::add('*', '*', function() {
|
||||
@@ -20,8 +20,8 @@ RouteCollection::add('*', '*', function() {
|
||||
if(INSTALL_REQUIRE){
|
||||
//App need to be installed
|
||||
if (!is_file(DIR_CONFIG . 'modules.ini')) {
|
||||
$ROUTE->do_block()->set_http_error(500);
|
||||
$ROUTE->doBlock()->setHttpError(500);
|
||||
}
|
||||
}
|
||||
|
||||
}, -19)->do_ignore()->middleware_ignore('auth');
|
||||
}, -19)->doIgnore()->middlewareIgnore('auth');
|
||||
@@ -14,4 +14,4 @@ RouteCollection::get('*', function(){
|
||||
|
||||
$OUTPUT = Output::getInstance();
|
||||
|
||||
}, -11)->do_ignore();
|
||||
}, -11)->doIgnore();
|
||||
+1
-1
@@ -12,5 +12,5 @@ use Routes\RouteCollection as RouteCollection;
|
||||
|
||||
Lang::buildStrings();
|
||||
|
||||
RouteCollection::getInstance()->crawl(__DIR__.'/application')->load_routes();
|
||||
RouteCollection::getInstance()->crawl(__DIR__.'/application')->loadRoutes();
|
||||
RouteCollection::getInstance()->submit();
|
||||
|
||||
Reference in New Issue
Block a user