Skip to content

Commit

Permalink
Check if a plugin has been loaded previously.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Apr 3, 2017
1 parent 4bd5a57 commit 2c774fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Shell.php
Expand Up @@ -433,7 +433,7 @@ public function runCommand($argv, $autoMethod = false, $extra = [])
$this->params = array_merge($this->params, $extra);
}
$this->_setOutputLevel();
if (!empty($this->params['plugin'])) {
if (!empty($this->params['plugin']) && !Plugin::loaded($this->params['plugin'])) {
Plugin::load($this->params['plugin']);
}
$this->command = $command;
Expand Down

0 comments on commit 2c774fb

Please sign in to comment.