injectableFactory = $injectableFactory; $this->commandManager = $this->injectableFactory->create(ConsoleCommandManager::class); } public function run() { ob_start(); $result = $this->commandManager->run($_SERVER['argv']); if (is_string($result)) { ob_end_clean(); echo $result; } } }