Skip to content
Permalink
Browse files

move adding short plugin aliases to constructor

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 47f1ff46e1b2a7778823d4cb4bd16a88ce20baf9
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/Console/ShellDispatcher.php
@@ -55,6 +55,8 @@ public function __construct($args = [], $bootstrap = true) {
set_time_limit(0);
$this->args = (array)$args;
$this->addShortPluginAliases();
if ($bootstrap) {
$this->_initEnvironment();
}
@@ -173,10 +175,6 @@ protected function _dispatch() {
return true;
}
if (!self::$_aliases) {
$this->addShortPluginAliases();
}
$Shell = $this->findShell($shell);
$Shell->initialize();

0 comments on commit 47f1ff4

Please sign in to comment.
You can’t perform that action at this time.