application = $application; } public function getApplication(): Application { return $this->application; } protected function runCommand(OutputInterface $output, string $command_name, array $command_args = []): void { $command = $this->getApplication()->find($command_name); $input = new ArrayInput(['command' => $command_name] + $command_args); $input->setInteractive(false); $command->run($input, $output); } }