diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index 417f9e38a..adbaa9f40 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -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(); } -} \ No newline at end of file +} diff --git a/lib/Cake/Console/Shell.php b/lib/Cake/Console/Shell.php index 00aea53d6..995ca3198 100644 --- a/lib/Cake/Console/Shell.php +++ b/lib/Cake/Console/Shell.php @@ -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);