1
0
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:
Franz Liedke
2017-06-24 11:52:53 +02:00
parent 6268c3010f
commit 0be13d50bd
22 changed files with 84 additions and 86 deletions

View File

@@ -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);