Build app for CLI too.

This commit is contained in:
Buster Neece 2023-12-22 21:38:51 -06:00
parent 4e669ab20f
commit f4b54c3eb6
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ final class AppFactory
$diBuilder = self::createContainerBuilder($environment);
$di = self::buildContainer($diBuilder);
// Some CLI commands require the App to be injected for routing.
self::buildAppFromContainer($di);
SupportedLocales::createForCli($environment);
return $di->get(Application::class);