Skip to content

Commit

Permalink
remove CONTROLLERS constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 15, 2011
1 parent bd0a303 commit 80e6876
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/Console/Command/Task/ControllerTask.php
Expand Up @@ -36,18 +36,19 @@ class ControllerTask extends BakeTask {
public $tasks = array('Model', 'Test', 'Template', 'DbConfig', 'Project');

/**
* path to CONTROLLERS directory
* path to Controller directory
*
* @var array
* @access public
*/
public $path = CONTROLLERS;
public $path = null;

/**
* Override initialize
*
*/
public function initialize() {
$this->path = App::path('Controller');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -28,7 +28,7 @@
class PluginTask extends Shell {

/**
* path to CONTROLLERS directory
* path to plugins directory
*
* @var array
* @access public
Expand Down Expand Up @@ -184,7 +184,7 @@ public function findPath($pathOptions) {
*/
public function getOptionParser() {
$parser = parent::getOptionParser();
return $parser->description(__d('cake_console',
return $parser->description(__d('cake_console',
'Create the directory structure, AppModel and AppController classes for a new plugin. ' .
'Can create plugins in any of your bootstrapped plugin paths.'
))->addArgument('name', array(
Expand Down
5 changes: 0 additions & 5 deletions lib/Cake/bootstrap.php
Expand Up @@ -58,11 +58,6 @@
*/
define('BEHAVIORS', MODELS.'Behavior'.DS);

/**
* Path to the application's controllers directory.
*/
define('CONTROLLERS', APP.'Controller'.DS);

/**
* Path to the application's components directory.
*/
Expand Down

0 comments on commit 80e6876

Please sign in to comment.