diff --git a/Listener/DisableHtmlFormValidation.php b/Listener/DisableHtmlFormValidation.php index 9fb6d99..361d89b 100644 --- a/Listener/DisableHtmlFormValidation.php +++ b/Listener/DisableHtmlFormValidation.php @@ -6,7 +6,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpKernel\HttpKernelInterface; -use Symfony\Component\HttpKernel\Event\ResponseEvent; +use Symfony\Component\HttpKernel\Event\KernelEvent; class DisableHtmlFormValidation { @@ -17,7 +17,7 @@ public function __construct($enabled = false) $this->enabled = $enabled; } - public function onKernelResponse(ResponseEvent $event) + public function onKernelResponse(KernelEvent $event) { if ($this->enabled) { if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {