mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing missing uses for Controller Task.
Fixing incorrect import() for ClassRegistry.
This commit is contained in:
parent
1c417ac2fd
commit
317aad9526
2 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
App::uses('BakeTask', 'Console/Command/Task');
|
||||
App::uses('AppModel', 'Model');
|
||||
|
||||
/**
|
||||
* Task class for creating and updating controller files.
|
||||
|
@ -499,4 +500,4 @@ class ControllerTask extends BakeTask {
|
|||
$this->out();
|
||||
$this->_stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ class Shell extends Object {
|
|||
if ($this->uses === null || $this->uses === false) {
|
||||
return;
|
||||
}
|
||||
App::import('Core', 'ClassRegistry');
|
||||
App::uses('ClassRegistry', 'Utility');
|
||||
|
||||
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