mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving dispatcher include so that cake/bootstrap.php is only bootstrapping the framework. This should allow reusing the bootstrap file for console and web once console error handler is fixed.
This commit is contained in:
parent
d6b43c0e29
commit
81e6ca2249
2 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@
|
|||
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
|
||||
return;
|
||||
} else {
|
||||
require CAKE . 'dispatcher.php';
|
||||
$Dispatcher = new Dispatcher();
|
||||
$Dispatcher->dispatch();
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@ require LIBS . 'error_handler.php';
|
|||
set_exception_handler(array('ErrorHandler', 'handleException'));
|
||||
|
||||
Configure::bootstrap();
|
||||
require CAKE . 'dispatcher.php';
|
||||
|
||||
|
|
Loading…
Reference in a new issue