From 033e4d0ba07799734a7ce6b220c780dc37f378ba Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 7 Nov 2016 18:22:20 +1030 Subject: [PATCH] Add missing parameter --- framework/core/src/Event/ConfigureWebApp.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Event/ConfigureWebApp.php b/framework/core/src/Event/ConfigureWebApp.php index 95e0f426a..9c73b7e44 100644 --- a/framework/core/src/Event/ConfigureWebApp.php +++ b/framework/core/src/Event/ConfigureWebApp.php @@ -14,6 +14,7 @@ use Flarum\Admin\Controller\WebAppController as AdminWebAppController; use Flarum\Forum\Controller\WebAppController as ForumWebAppController; use Flarum\Http\Controller\AbstractWebAppController; use Flarum\Http\WebApp\WebAppView; +use Psr\Http\Message\ServerRequestInterface; class ConfigureWebApp { @@ -27,14 +28,21 @@ class ConfigureWebApp */ public $view; + /** + * @var ServerRequestInterface + */ + public $request; + /** * @param AbstractWebAppController $controller * @param WebAppView $view + * @param ServerRequestInterface $request */ - public function __construct(AbstractWebAppController $controller, WebAppView $view) + public function __construct(AbstractWebAppController $controller, WebAppView $view, ServerRequestInterface $request) { $this->controller = $controller; $this->view = $view; + $this->request = $request; } public function isForum()