[FEATURE] Add symfony dependency injection for core and extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Http / Application.php
index e61f0a7..e13a28e 100644 (file)
@@ -17,6 +17,7 @@ namespace TYPO3\CMS\Backend\Http;
 
 use Psr\Http\Message\ResponseInterface;
 use Psr\Http\Message\ServerRequestInterface;
+use Psr\Http\Server\RequestHandlerInterface;
 use TYPO3\CMS\Core\Configuration\ConfigurationManager;
 use TYPO3\CMS\Core\Context\Context;
 use TYPO3\CMS\Core\Context\DateTimeAspect;
@@ -32,25 +33,17 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 class Application extends AbstractApplication
 {
     /**
-     * @var string
-     */
-    protected $requestHandler = RequestHandler::class;
-
-    /**
-     * @var string
-     */
-    protected $middlewareStack = 'backend';
-
-    /**
      * @var ConfigurationManager
      */
     protected $configurationManager;
 
     /**
+     * @param RequestHandlerInterface $requestHandler
      * @param ConfigurationManager $configurationManager
      */
-    public function __construct(ConfigurationManager $configurationManager)
+    public function __construct(RequestHandlerInterface $requestHandler, ConfigurationManager $configurationManager)
     {
+        $this->requestHandler = $requestHandler;
         $this->configurationManager = $configurationManager;
     }