Skip to content

Commit

Permalink
Remove deprecated event
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Sep 16, 2020
1 parent 4842175 commit a29ed91
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
3 changes: 0 additions & 3 deletions bundle/View/ViewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use LogicException;
use Netgen\Bundle\EzPlatformSiteApiBundle\Event\RenderViewEvent;
use Netgen\Bundle\EzPlatformSiteApiBundle\Events;
use Netgen\EzPlatformSiteApi\Event\RenderContentEvent;
use Netgen\EzPlatformSiteApi\Event\SiteApiEvents;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
Expand Down Expand Up @@ -72,7 +70,6 @@ public function render(View $view, array $parameters, bool $layout): string
{
$renderedContent = $this->doRender($view, $parameters, $layout);

$this->eventDispatcher->dispatch(new RenderContentEvent($view), SiteApiEvents::RENDER_CONTENT);
$this->eventDispatcher->dispatch(new RenderViewEvent($view), Events::RENDER_VIEW);

return $renderedContent;
Expand Down
16 changes: 0 additions & 16 deletions lib/Event/RenderContentEvent.php

This file was deleted.

18 changes: 0 additions & 18 deletions lib/Event/SiteApiEvents.php

This file was deleted.

0 comments on commit a29ed91

Please sign in to comment.