From 80e68763a3810bc19e9839409117666865d75b6e Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 17 Apr 2011 11:13:04 +0200 Subject: [PATCH] remove CONTROLLERS constant --- lib/Cake/Console/Command/Task/ControllerTask.php | 5 +++-- lib/Cake/Console/Command/Task/PluginTask.php | 4 ++-- lib/Cake/bootstrap.php | 5 ----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index adbaa9f4090..86b21e5035e 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -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'); } /** diff --git a/lib/Cake/Console/Command/Task/PluginTask.php b/lib/Cake/Console/Command/Task/PluginTask.php index 9d409a87266..7e2c7fa0bfa 100644 --- a/lib/Cake/Console/Command/Task/PluginTask.php +++ b/lib/Cake/Console/Command/Task/PluginTask.php @@ -28,7 +28,7 @@ class PluginTask extends Shell { /** - * path to CONTROLLERS directory + * path to plugins directory * * @var array * @access public @@ -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( diff --git a/lib/Cake/bootstrap.php b/lib/Cake/bootstrap.php index 00284c1cdfc..4fd7ba71fb5 100644 --- a/lib/Cake/bootstrap.php +++ b/lib/Cake/bootstrap.php @@ -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. */