for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\NewsBundle\Event;
use Sonata\NewsBundle\Model\CommentInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
final class FilterCommentResponseEvent extends CommentEvent
{
/**
* @var Response
private $response;
public function __construct(CommentInterface $comment, Request $request, Response $response)
parent::__construct($comment, $request);
$this->response = $response;
}
public function getResponse(): Response
return $this->response;
public function setResponse(Response $response): void