Fix up some references to old classes

This commit is contained in:
Toby Zerner 2016-05-29 16:01:58 +09:30
parent 8328c446b0
commit 4bd05ee561
2 changed files with 9 additions and 9 deletions

View File

@ -20,7 +20,7 @@ class ConfigureForumRoutes extends AbstractConfigureRoutes
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function get($url, $name, $handler = 'Flarum\Forum\Controller\ClientController') public function get($url, $name, $handler = 'Flarum\Forum\Controller\WebAppController')
{ {
parent::get($url, $name, $handler); parent::get($url, $name, $handler);
} }

View File

@ -10,26 +10,26 @@
namespace Flarum\Event; namespace Flarum\Event;
use Flarum\Admin\Controller\WebAppController as AdminClientController; use Flarum\Admin\Controller\WebAppController as AdminWebAppController;
use Flarum\Forum\Controller\WebAppController as ForumClientController; 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;
class ConfigureWebApp class ConfigureWebApp
{ {
/** /**
* @var AbstractClientController * @var AbstractWebAppController
*/ */
public $controller; public $controller;
/** /**
* @var ClientView * @var WebAppView
*/ */
public $view; public $view;
/** /**
* @param AbstractClientController $controller * @param AbstractWebAppController $controller
* @param ClientView $view * @param WebAppView $view
*/ */
public function __construct(AbstractWebAppController $controller, WebAppView $view) public function __construct(AbstractWebAppController $controller, WebAppView $view)
{ {
@ -39,12 +39,12 @@ class ConfigureWebApp
public function isForum() public function isForum()
{ {
return $this->controller instanceof ForumClientController; return $this->controller instanceof ForumWebAppController;
} }
public function isAdmin() public function isAdmin()
{ {
return $this->controller instanceof AdminClientController; return $this->controller instanceof AdminWebAppController;
} }
public function addAssets($files) public function addAssets($files)