Skip to content

Commit

Permalink
Optimal AppStore (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s authored May 10, 2024
1 parent ea99ad7 commit be48875
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Command/CrontabMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
}

Expand Down

0 comments on commit be48875

Please sign in to comment.