mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating console bootstrap process.
This commit is contained in:
parent
b2351ef3c9
commit
2fee0b5b63
2 changed files with 3 additions and 3 deletions
|
@ -265,7 +265,7 @@ class ShellDispatcher {
|
|||
}
|
||||
}
|
||||
|
||||
Configure::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
|
||||
Configure::bootstrap(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';
|
||||
|
|
|
@ -48,11 +48,11 @@ class Configure extends Object {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function bootstrap() {
|
||||
public static function bootstrap($boot = true) {
|
||||
if (!class_exists('Set')) {
|
||||
require LIBS . 'set.php';
|
||||
}
|
||||
self::__loadBootstrap(true);
|
||||
self::__loadBootstrap($boot);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue