mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Flarum\Frontend: Rename ConfigureWebApp event to Rendering
This commit is contained in:
parent
5d1564e0fc
commit
fda8c597f4
|
@ -11,9 +11,11 @@
|
|||
|
||||
namespace Flarum\Event;
|
||||
|
||||
use Flarum\Frontend\Event\Rendering;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
class ConfigureClientView extends ConfigureWebApp
|
||||
class ConfigureClientView extends Rendering
|
||||
{
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
namespace Flarum\Frontend;
|
||||
|
||||
use Flarum\Event\ConfigureClientView;
|
||||
use Flarum\Event\ConfigureWebApp;
|
||||
use Flarum\Frontend\Event\Rendering;
|
||||
use Flarum\Http\Controller\AbstractHtmlController;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
@ -40,7 +40,7 @@ abstract class AbstractFrontendController extends AbstractHtmlController
|
|||
new ConfigureClientView($this, $view, $request)
|
||||
);
|
||||
$this->events->fire(
|
||||
new ConfigureWebApp($this, $view, $request)
|
||||
new Rendering($this, $view, $request)
|
||||
);
|
||||
|
||||
return $view->render($request);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Event;
|
||||
namespace Flarum\Frontend\Event;
|
||||
|
||||
use Flarum\Admin\Controller\FrontendController as AdminWebAppController;
|
||||
use Flarum\Forum\Controller\FrontendController as ForumWebAppController;
|
||||
|
@ -17,7 +17,7 @@ use Flarum\Frontend\AbstractFrontendController;
|
|||
use Flarum\Frontend\FrontendView;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
class ConfigureWebApp
|
||||
class Rendering
|
||||
{
|
||||
/**
|
||||
* @var AbstractFrontendController
|
Loading…
Reference in New Issue
Block a user