From 241031f1fa156d679c3a28f6f55f8d9d4f010617 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 19 Dec 2024 20:24:24 +0000 Subject: [PATCH] inject container inside app instance --- src/App.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.php b/src/App.php index 919d76402e..cd1c1753fc 100644 --- a/src/App.php +++ b/src/App.php @@ -55,6 +55,7 @@ class App public static function fromDice(Dice $dice): self { return new self( + $dice, $dice->create(Request::class), $dice->create(Authentication::class), $dice->create(IManageConfigValues::class), @@ -71,6 +72,11 @@ class App ); } + /** + * @var Dice + */ + private $container; + /** * @var Mode The Mode of the Application */ @@ -123,6 +129,7 @@ class App private $appHelper; private function __construct( + Dice $container, Request $request, Authentication $auth, IManageConfigValues $config, @@ -137,6 +144,7 @@ class App ViewDefinition $viewDefinition, AppHelper $appHelper = null, ) { + $this->container = $container; $this->requestId = $request->getRequestId(); $this->auth = $auth; $this->config = $config;