Fixing missing uses for Controller Task.

Fixing incorrect import() for ClassRegistry.
This commit is contained in:
mark_story 2011-05-01 14:58:32 -04:00
parent 1c417ac2fd
commit 317aad9526
2 changed files with 3 additions and 2 deletions

View file

@ -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();
}
}
}

View file

@ -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);