Skip to content

Commit

Permalink
Updating eventlistener
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Sep 13, 2019
1 parent 1efc2b8 commit f15927b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@

namespace AcmeCorp\ReferenceExtension;

use Symfony\Component\HttpKernel\Event\ResponseEvent;

class EventListener
{
public function handleEvent($e): void
public function handleEvent(ResponseEvent $e): void
{
echo '<h2>It Works!</h2>';
$content = $e->getResponse()->getContent();
$content .= "\n<!-- It works! -->\n";

$response->setContent($content);
}
}

0 comments on commit f15927b

Please sign in to comment.