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

@@ -19,7 +19,6 @@ use function sprintf;
class DeleteShortUrlCommand extends Command
{
public const NAME = 'short-url:delete';
private const ALIASES = ['short-code:delete'];
private DeleteShortUrlServiceInterface $deleteShortUrlService;
@@ -33,7 +32,6 @@ class DeleteShortUrlCommand extends Command
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Deletes a short URL')
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code for the short URL to be deleted')
->addOption(

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(

View File

@@ -22,7 +22,6 @@ use function Functional\select_keys;
class GetVisitsCommand extends AbstractWithDateRangeCommand
{
public const NAME = 'short-url:visits';
private const ALIASES = ['shortcode:visits', 'short-code:visits'];
private VisitsTrackerInterface $visitsTracker;
@@ -36,7 +35,6 @@ class GetVisitsCommand extends AbstractWithDateRangeCommand
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Returns the detailed visits information for provided short code')
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code which visits we want to get');
}

View File

@@ -32,7 +32,6 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
use PaginatorUtilsTrait;
public const NAME = 'short-url:list';
private const ALIASES = ['shortcode:list', 'short-code:list'];
private const COLUMNS_WHITELIST = [
'shortCode',
'shortUrl',
@@ -56,7 +55,6 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('List all short URLs')
->addOption(
'page',

View File

@@ -19,7 +19,6 @@ use function sprintf;
class ResolveUrlCommand extends Command
{
public const NAME = 'short-url:parse';
private const ALIASES = ['shortcode:parse', 'short-code:parse'];
private UrlShortenerInterface $urlShortener;
@@ -33,7 +32,6 @@ class ResolveUrlCommand extends Command
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Returns the long URL behind a short code')
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code to parse')
->addOption('domain', 'd', InputOption::VALUE_REQUIRED, 'The domain to which the short URL is attached.');

View File

@@ -30,7 +30,6 @@ use function sprintf;
class LocateVisitsCommand extends AbstractLockedCommand
{
public const NAME = 'visit:locate';
public const ALIASES = ['visit:process'];
private VisitServiceInterface $visitService;
private IpLocationResolverInterface $ipLocationResolver;
@@ -55,7 +54,6 @@ class LocateVisitsCommand extends AbstractLockedCommand
{
$this
->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Resolves visits origin locations.');
}