console)) { $this->console = new ConsoleApplication('Flarum', Application::VERSION); $this->console->setAutoExit(false); foreach ($this->app()->getConsoleCommands() as $command) { $this->console->add($command); } } return $this->console; } protected function runCommand(array $inputArray) { $input = new ArrayInput($inputArray); $output = new BufferedOutput(); $this->console()->run($input, $output); return trim($output->fetch()); } }