createWithConfig($configFile); } else { $container = $containerFactory->create(); } // 3. Run Console Application /** @var Application $application */ $application = $container->get(Application::class); $statusCode = $application->run(); exit($statusCode); } catch (Throwable $throwable) { $symfonyStyle = SymfonyStyleFactory::create(); $symfonyStyle->error(sprintf( '%s in %s on line %d', $throwable->getMessage(), $throwable->getFile(), $throwable->getLine() )); exit(1); }