Aliases allow you to call shells by alternate names. This is most
useful when dealing with plugin shells that you want to have shorter
names for.
If you re-use an alias the last alias set will be the one available.
### Usage
Aliasing a shell named ClassName:
$this->alias('alias', 'ClassName');
Getting the original name for a given alias:
$this->alias('alias');
/** * Test finding a shell that has a matching alias. * * Aliases should not overload concrete shells. * * @return void */ public function testFindShellAliasedAppShadow() { ShellDispatcher::alias('sample', 'test_plugin.example'); $result = $this->dispatcher->findShell('sample'); $this->assertInstanceOf('TestApp\\Shell\\SampleShell', $result); $this->assertEmpty($result->plugin); $this->assertEquals('Sample', $result->name); }