Browse Source

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
AD7six 11 years ago
parent
commit
47f1ff46e1
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/Console/ShellDispatcher.php

+ 2 - 4
src/Console/ShellDispatcher.php

@@ -55,6 +55,8 @@ class ShellDispatcher {
 		set_time_limit(0);
 		$this->args = (array)$args;
 
+		$this->addShortPluginAliases();
+
 		if ($bootstrap) {
 			$this->_initEnvironment();
 		}
@@ -173,10 +175,6 @@ class ShellDispatcher {
 			return true;
 		}
 
-		if (!self::$_aliases) {
-			$this->addShortPluginAliases();
-		}
-
 		$Shell = $this->findShell($shell);
 
 		$Shell->initialize();