From f4b54c3eb61541286220d2a233358c832789c630 Mon Sep 17 00:00:00 2001 From: Buster Neece Date: Fri, 22 Dec 2023 21:38:51 -0600 Subject: [PATCH] Build app for CLI too. --- src/AppFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AppFactory.php b/src/AppFactory.php index c2b741f66..dd6854c51 100644 --- a/src/AppFactory.php +++ b/src/AppFactory.php @@ -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);