Skip to content

Commit

Permalink
Fixing class loading for bake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 8, 2010
1 parent b5122e6 commit 66145db
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ControllerTask.php
Expand Up @@ -18,7 +18,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

include_once dirname(__FILE__) . DS . 'bake.php';
App::uses('BakeTask', 'Console/Command/Task');

/**
* Task class for creating and updating controller files.
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ExtractTask.php
Expand Up @@ -17,7 +17,7 @@
* @since CakePHP(tm) v 1.2.0.5012
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Core', 'File');
App::uses('File', 'Utility');
/**
* Language string extractor
*
Expand Down
4 changes: 3 additions & 1 deletion lib/Cake/Console/Command/Task/FixtureTask.php
Expand Up @@ -17,7 +17,9 @@
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
include_once dirname(__FILE__) . DS . 'bake.php';

App::uses('BakeTask', 'Console/Command/Task');

/**
* Task class for creating and updating fixtures files.
*
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -18,7 +18,8 @@
* @since CakePHP(tm) v 1.2
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Core', 'File');

App::uses('File', 'Utility');

/**
* Task class for creating new project apps and plugins
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Console/Command/Task/TemplateTask.php
Expand Up @@ -17,7 +17,8 @@
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Core', 'Folder');

App::uses('Folder', 'Utility');

class TemplateTask extends Shell {

Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/TestTask.php
Expand Up @@ -18,8 +18,8 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

include_once dirname(__FILE__) . DS . 'bake.php';
App::import('Model', 'ClassRegistry');
App::uses('BakeTask', 'Console/Command/Task');
App::uses('ClassRegistry', 'Utility');

/**
* Task class for creating and updating test files.
Expand Down
5 changes: 3 additions & 2 deletions lib/Cake/Console/Command/Task/ViewTask.php
Expand Up @@ -17,8 +17,9 @@
* @since CakePHP(tm) v 1.2
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Controller', 'Controller', false);
include_once dirname(__FILE__) . DS . 'bake.php';

App::uses('Controller', 'Controller');
App::uses('BakeTask', 'Console/Command/Task');

/**
* Task class for creating and updating view files.
Expand Down

0 comments on commit 66145db

Please sign in to comment.