mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
Fix up some references to old classes
This commit is contained in:
parent
8328c446b0
commit
4bd05ee561
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user