mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Mostly reverting changes made in [8ce9560f41
]. Using a console like project bake from outside a cake app no longer causes errors from Configure. Fixes #387
This commit is contained in:
parent
9632e74cfc
commit
585f731ae2
1 changed files with 4 additions and 1 deletions
|
@ -264,10 +264,13 @@ class ShellDispatcher {
|
|||
}
|
||||
}
|
||||
|
||||
Configure::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
|
||||
|
||||
if (!file_exists(APP_PATH . 'config' . DS . 'core.php')) {
|
||||
include_once CORE_PATH . 'cake' . DS . 'console' . DS . 'templates' . DS . 'skel' . DS . 'config' . DS . 'core.php';
|
||||
App::build();
|
||||
}
|
||||
Configure::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue