Skip to content

Commit

Permalink
move adding short plugin aliases to constructor
Browse files Browse the repository at this point in the history
That way, they are always present, and don't prevent/interfere with a
user creating their own command aliases
  • Loading branch information
AD7six committed Sep 10, 2014
1 parent fb6b739 commit 47f1ff4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Console/ShellDispatcher.php
Expand Up @@ -55,6 +55,8 @@ public function __construct($args = [], $bootstrap = true) {
set_time_limit(0);
$this->args = (array)$args;

$this->addShortPluginAliases();

if ($bootstrap) {
$this->_initEnvironment();
}
Expand Down Expand Up @@ -173,10 +175,6 @@ protected function _dispatch() {
return true;
}

if (!self::$_aliases) {
$this->addShortPluginAliases();
}

$Shell = $this->findShell($shell);

$Shell->initialize();
Expand Down

0 comments on commit 47f1ff4

Please sign in to comment.