Skip to content

Commit aabaecb

Browse files
committed
Revert route load removal.
I was wrong this code is still required.
1 parent 32826ca commit aabaecb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @license http://www.opensource.org/licenses/mit-license.php MIT License
1212
*/
1313
use Cake\Core\Configure;
14+
use Cake\Core\Plugin as CorePlugin;
1415
use Cake\Datasource\ConnectionManager;
1516
use Cake\Event\EventManager;
1617
use Cake\Log\Log;
@@ -63,6 +64,10 @@ function ($code, $message, $file, $line, $context = null) use (&$previousHandler
6364
]);
6465
}
6566

67+
if (!CorePlugin::getCollection()->get('DebugKit')->isEnabled('routes')) {
68+
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'routes.php';
69+
}
70+
6671
$appClass = Configure::read('App.namespace') . '\Application';
6772
if (class_exists($appClass)) {
6873
EventManager::instance()->on('Server.buildMiddleware', function ($event, $queue) use ($service) {

0 commit comments

Comments
 (0)