mirror of
https://github.com/flarum/core.git
synced 2025-10-11 15:04:25 +02:00
Create new Flarum\Frontend namespace
It replaces the old Http\WebApp namespace and swallows other namespaces and files, such as Flarum\Asset.
This commit is contained in:
@@ -14,12 +14,12 @@ namespace Flarum\Forum\Controller;
|
||||
use Flarum\Api\Client;
|
||||
use Flarum\Core\User;
|
||||
use Flarum\Forum\UrlGenerator;
|
||||
use Flarum\Forum\WebApp;
|
||||
use Flarum\Forum\Frontend;
|
||||
use Flarum\Http\Exception\RouteNotFoundException;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
||||
class DiscussionController extends WebAppController
|
||||
class DiscussionController extends FrontendController
|
||||
{
|
||||
/**
|
||||
* @var ApiClient
|
||||
@@ -34,7 +34,7 @@ class DiscussionController extends WebAppController
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __construct(WebApp $webApp, Dispatcher $events, Client $api, UrlGenerator $url)
|
||||
public function __construct(Frontend $webApp, Dispatcher $events, Client $api, UrlGenerator $url)
|
||||
{
|
||||
parent::__construct($webApp, $events);
|
||||
|
||||
|
Reference in New Issue
Block a user