Update command to Attribute
This commit is contained in:
@ -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,
|
||||
)
|
||||
|
Reference in New Issue
Block a user