Removed old command aliases

This commit is contained in:
Alejandro Celaya
2019-12-31 16:08:08 +01:00
parent 5c90a7c7a7
commit f99ca464de
7 changed files with 17 additions and 33 deletions

View File

@@ -26,7 +26,6 @@ use function sprintf;
class GenerateShortUrlCommand extends Command
{
public const NAME = 'short-url:generate';
private const ALIASES = ['shortcode:generate', 'short-code:generate'];
private UrlShortenerInterface $urlShortener;
private array $domainConfig;
@@ -42,7 +41,6 @@ class GenerateShortUrlCommand extends Command
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Generates a short URL for provided long URL and returns it')
->addArgument('longUrl', InputArgument::REQUIRED, 'The long URL to parse')
->addOption(