addAlias() public method

An alias is an alternative name that can be used when calling the command. Aliases are a useful way for migrating a command from one name to another. Existing alias names are preserved.
public addAlias ( string $alias ) : static
$alias string The alias name to add.
return static The current instance.
Example #1
0
 public function testSetAliases()
 {
     $this->config->addAlias('alias1');
     $this->config->setAliases(array('alias2', 'alias3'));
     $this->assertSame(array('alias2', 'alias3'), $this->config->getAliases());
 }