Skip to content

Commit

Permalink
Revert route load removal.
Browse files Browse the repository at this point in the history
I was wrong this code is still required.
  • Loading branch information
markstory committed Jun 11, 2018
1 parent 32826ca commit aabaecb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/bootstrap.php
Expand Up @@ -11,6 +11,7 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Core\Configure;
use Cake\Core\Plugin as CorePlugin;
use Cake\Datasource\ConnectionManager;
use Cake\Event\EventManager;
use Cake\Log\Log;
Expand Down Expand Up @@ -63,6 +64,10 @@ function ($code, $message, $file, $line, $context = null) use (&$previousHandler
]);
}

if (!CorePlugin::getCollection()->get('DebugKit')->isEnabled('routes')) {
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'routes.php';
}

$appClass = Configure::read('App.namespace') . '\Application';
if (class_exists($appClass)) {
EventManager::instance()->on('Server.buildMiddleware', function ($event, $queue) use ($service) {
Expand Down

0 comments on commit aabaecb

Please sign in to comment.