mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
remove CONTROLLERS constant
This commit is contained in:
parent
bd0a303c09
commit
80e68763a3
3 changed files with 5 additions and 9 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,7 +28,7 @@ App::uses('Folder', 'Utility');
|
|||
class PluginTask extends Shell {
|
||||
|
||||
/**
|
||||
* path to CONTROLLERS directory
|
||||
* path to plugins directory
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
|
@ -184,7 +184,7 @@ class PluginTask extends Shell {
|
|||
*/
|
||||
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(
|
||||
|
|
|
@ -58,11 +58,6 @@ if (!defined('APP')) {
|
|||
*/
|
||||
define('BEHAVIORS', MODELS.'Behavior'.DS);
|
||||
|
||||
/**
|
||||
* Path to the application's controllers directory.
|
||||
*/
|
||||
define('CONTROLLERS', APP.'Controller'.DS);
|
||||
|
||||
/**
|
||||
* Path to the application's components directory.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue