mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Fixing issue where ClassRegistry would not be loaded when using Models
in shells. Fixes #1417
This commit is contained in:
parent
b6b4f4a3df
commit
2e0f2c75f4
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ class Shell extends Object {
|
|||
if ($this->uses === null || $this->uses === false) {
|
||||
return;
|
||||
}
|
||||
App::import('Core', 'ClassRegistry');
|
||||
|
||||
if ($this->uses !== true && !empty($this->uses)) {
|
||||
$uses = is_array($this->uses) ? $this->uses : array($this->uses);
|
||||
|
|
Loading…
Add table
Reference in a new issue