Update command to Attribute

This commit is contained in:
Tim
2022-09-28 13:30:21 +02:00
parent af30297d74
commit 55395666b7
7 changed files with 18 additions and 17 deletions

View File

@ -3,16 +3,16 @@
namespace App\Console;
use App\Service\DatabaseService;
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 Symfony\Component\Console\Question\Question;
#[AsCommand('db:create')]
class CreateDatabaseCommand extends Command
{
protected static $defaultName = 'db:create';
public function __construct(
private DatabaseService $db,
)