mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Add missing parameter
This commit is contained in:
parent
7b86f412f7
commit
033e4d0ba0
|
@ -14,6 +14,7 @@ use Flarum\Admin\Controller\WebAppController as AdminWebAppController;
|
||||||
use Flarum\Forum\Controller\WebAppController as ForumWebAppController;
|
use Flarum\Forum\Controller\WebAppController as ForumWebAppController;
|
||||||
use Flarum\Http\Controller\AbstractWebAppController;
|
use Flarum\Http\Controller\AbstractWebAppController;
|
||||||
use Flarum\Http\WebApp\WebAppView;
|
use Flarum\Http\WebApp\WebAppView;
|
||||||
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
|
|
||||||
class ConfigureWebApp
|
class ConfigureWebApp
|
||||||
{
|
{
|
||||||
|
@ -27,14 +28,21 @@ class ConfigureWebApp
|
||||||
*/
|
*/
|
||||||
public $view;
|
public $view;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ServerRequestInterface
|
||||||
|
*/
|
||||||
|
public $request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param AbstractWebAppController $controller
|
* @param AbstractWebAppController $controller
|
||||||
* @param WebAppView $view
|
* @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->controller = $controller;
|
||||||
$this->view = $view;
|
$this->view = $view;
|
||||||
|
$this->request = $request;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isForum()
|
public function isForum()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user