Skip to content

Commit

Permalink
use AsCommand attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbeaujean committed Feb 23, 2024
1 parent 7aa0d4e commit b1e7155
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

namespace tbn\QueryBuilderRepositoryGeneratorBundle\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use tbn\QueryBuilderRepositoryGeneratorBundle\Generator\RepositoryGenerator;

#[AsCommand(
name: 'qbrg:generate',
)]
class GenerateCommand extends Command
{
protected static $defaultName = 'qbrg:generate';

/** @var RepositoryGenerator */
private $repositoryGenerator;

Expand Down

0 comments on commit b1e7155

Please sign in to comment.