mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix behavior of --plugin param
Since plugins are not loaded in bootstrap, this is a good place to do it.
This commit is contained in:
parent
85c7ef8ec4
commit
c727444880
1 changed files with 3 additions and 1 deletions
|
@ -372,7 +372,9 @@ class Shell extends Object {
|
|||
if (!empty($this->params['quiet'])) {
|
||||
$this->_useLogger(false);
|
||||
}
|
||||
|
||||
if (!empty($this->params['plugin'])) {
|
||||
CakePlugin::load($this->params['plugin']);
|
||||
}
|
||||
$this->command = $command;
|
||||
if (!empty($this->params['help'])) {
|
||||
return $this->_displayHelp($command);
|
||||
|
|
Loading…
Reference in a new issue