]> git.mxchange.org Git - friendica.git/commitdiff
require AppHelper in App
authorArt4 <art4@wlabs.de>
Thu, 19 Dec 2024 20:26:38 +0000 (20:26 +0000)
committerArt4 <art4@wlabs.de>
Thu, 19 Dec 2024 20:26:38 +0000 (20:26 +0000)
src/App.php

index cd1c1753fcac64f44d299cd14e56243a888a13f2..d0881c5e5551b95a221a718a63f002b361301fd9 100644 (file)
@@ -142,7 +142,7 @@ class App
                IHandleUserSessions $session,
                DbaDefinition $dbaDefinition,
                ViewDefinition $viewDefinition,
-               AppHelper $appHelper = null,
+               AppHelper $appHelper,
        ) {
                $this->container = $container;
                $this->requestId = $request->getRequestId();
@@ -155,7 +155,7 @@ class App
                $this->l10n      = $l10n;
                $this->args      = $args;
                $this->session   = $session;
-               $this->appHelper = $appHelper ?? DI::appHelper();
+               $this->appHelper = $appHelper;
 
                $this->load($dbaDefinition, $viewDefinition);
        }