mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
rename method
This commit is contained in:
parent
3e48d2e082
commit
483cd13a26
1 changed files with 4 additions and 4 deletions
|
@ -501,13 +501,13 @@ class UpgradeShell extends AppShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update controllers.
|
* Update controller redirects.
|
||||||
*
|
*
|
||||||
* - Make redirect statements return early.
|
* - Make redirect statements return early.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function controllers() {
|
public function controller_redirects() {
|
||||||
$this->_paths = App::Path('Controller');
|
$this->_paths = App::Path('Controller');
|
||||||
if (!empty($this->params['plugin'])) {
|
if (!empty($this->params['plugin'])) {
|
||||||
$this->_paths = App::Path('Controller', $this->params['plugin']);
|
$this->_paths = App::Path('Controller', $this->params['plugin']);
|
||||||
|
@ -863,8 +863,8 @@ class UpgradeShell extends AppShell {
|
||||||
))->addSubcommand('constants', array(
|
))->addSubcommand('constants', array(
|
||||||
'help' => __d('cake_console', "Replace Obsolete constants"),
|
'help' => __d('cake_console', "Replace Obsolete constants"),
|
||||||
'parser' => $subcommandParser
|
'parser' => $subcommandParser
|
||||||
))->addSubcommand('controllers', array(
|
))->addSubcommand('controller_redirects', array(
|
||||||
'help' => __d('cake_console', 'Update controllers.'),
|
'help' => __d('cake_console', 'Return early on controller redirect calls.'),
|
||||||
'parser' => $subcommandParser
|
'parser' => $subcommandParser
|
||||||
))->addSubcommand('components', array(
|
))->addSubcommand('components', array(
|
||||||
'help' => __d('cake_console', 'Update components to extend Component class.'),
|
'help' => __d('cake_console', 'Update components to extend Component class.'),
|
||||||
|
|
Loading…
Reference in a new issue