From be488759f4e3690e0947639a8a98c6becd63b783 Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Fri, 10 May 2024 09:41:30 +0800 Subject: [PATCH] Optimal AppStore (#76) --- src/Command/CrontabMigrateCommand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Command/CrontabMigrateCommand.php b/src/Command/CrontabMigrateCommand.php index 51f707b..245f53f 100644 --- a/src/Command/CrontabMigrateCommand.php +++ b/src/Command/CrontabMigrateCommand.php @@ -14,9 +14,7 @@ use Hyperf\Command\Command as Base; use Hyperf\Database\Migrations\Migrator; -use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\NullOutput; class CrontabMigrateCommand extends Base @@ -38,7 +36,7 @@ public function __invoke() $migrator = $this->migrator; $migrator->setConnection($connection); $this->migrator - ->setOutput(new NullOutput(new ArrayInput([]), new ConsoleOutput())) + ->setOutput(new NullOutput()) ->run(dirname(__DIR__, 2) . '/Database/Migrations'); }