mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-26 14:04:17 +01:00
Use low level env init on migrate command
This commit is contained in:
@@ -9,6 +9,8 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
|||||||
|
|
||||||
class MigrateCommand extends Command
|
class MigrateCommand extends Command
|
||||||
{
|
{
|
||||||
|
use Env;
|
||||||
|
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setName('migrate')
|
$this->setName('migrate')
|
||||||
@@ -17,7 +19,7 @@ class MigrateCommand extends Command
|
|||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
{
|
{
|
||||||
require SYSTEM . 'init.php';
|
$this->init();
|
||||||
|
|
||||||
$io = new SymfonyStyle($input, $output);
|
$io = new SymfonyStyle($input, $output);
|
||||||
require SYSTEM . 'migrate.php';
|
require SYSTEM . 'migrate.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user