diff --git a/Classes/Command/ImportCommand.php b/Classes/Command/ImportCommand.php index 46a29e3..3ff9df0 100644 --- a/Classes/Command/ImportCommand.php +++ b/Classes/Command/ImportCommand.php @@ -81,7 +81,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $stream = fopen($path, 'r'); - $process = $this->databaseService->mysql(null, $stream); + $process = $this->databaseService->mysql($stream); $exitCode = $process->run(); diff --git a/Classes/Service/DatabaseService.php b/Classes/Service/DatabaseService.php index 204a40d..61362bc 100644 --- a/Classes/Service/DatabaseService.php +++ b/Classes/Service/DatabaseService.php @@ -23,9 +23,9 @@ public function __construct() $this->connection = $connectionPool->getConnectionByName(self::CONNECTION_NAME); } - public function mysql(?array $args = [], mixed $input = null): Process + public function mysql(mixed $input = null): Process { - $command = ['mysql', ...$this->buildConnectionArguments(), ...$args]; + $command = ['mysql', ...$this->buildConnectionArguments()]; return new Process($command, null, null, $input); }