Skip to content

Commit

Permalink
Issue #223: Added missing AsCommand attribute to existing commands.
Browse files Browse the repository at this point in the history
Signed-off-by: alexmerlin <[email protected]>
  • Loading branch information
alexmerlin committed Feb 29, 2024
1 parent 8574194 commit 3503ed5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App/src/Command/RouteListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Api\App\RoutesDelegator;
use Mezzio\Application;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -18,6 +19,10 @@
use function str_contains;
use function str_replace;

#[AsCommand(
name: 'route:list',
description: 'List API routes',
)]
class RouteListCommand extends Command
{
/** @var string $defaultName */
Expand Down
5 changes: 5 additions & 0 deletions src/App/src/Command/TokenGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@

use Api\App\Service\ErrorReportServiceInterface;
use Exception;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

use function sprintf;

#[AsCommand(
name: 'token:generate',
description: 'Generic token generator.',
)]
class TokenGenerateCommand extends Command
{
/** @var string $defaultName */
Expand Down

0 comments on commit 3503ed5

Please sign in to comment.