Flarum\Frontend: Rename ConfigureWebApp event to Rendering

This commit is contained in:
Franz Liedke 2017-06-24 12:19:59 +02:00
parent 5d1564e0fc
commit fda8c597f4
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
3 changed files with 7 additions and 5 deletions

View File

@ -11,9 +11,11 @@
namespace Flarum\Event;
use Flarum\Frontend\Event\Rendering;
/**
* @deprecated
*/
class ConfigureClientView extends ConfigureWebApp
class ConfigureClientView extends Rendering
{
}

View File

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

View File

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