Skip to content

Commit

Permalink
Merge pull request #224 from dotkernel/issue-223
Browse files Browse the repository at this point in the history
Issue #223: Added missing `AsCommand` attribute to existing commands.
  • Loading branch information
arhimede authored Feb 29, 2024
2 parents 8574194 + 3503ed5 commit 988a78d
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 988a78d

Please sign in to comment.