From 5432ee3629ed63094123d9a0c73b66db3f983705 Mon Sep 17 00:00:00 2001 From: Trent Steel Date: Thu, 1 Feb 2024 11:59:49 +1000 Subject: [PATCH] No need to check the request type --- Listener/DisableHtmlFormValidation.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Listener/DisableHtmlFormValidation.php b/Listener/DisableHtmlFormValidation.php index 361d89b..bb5eedc 100644 --- a/Listener/DisableHtmlFormValidation.php +++ b/Listener/DisableHtmlFormValidation.php @@ -5,7 +5,6 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; -use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\KernelEvent; class DisableHtmlFormValidation @@ -20,10 +19,6 @@ public function __construct($enabled = false) public function onKernelResponse(KernelEvent $event) { if ($this->enabled) { - if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) { - return; - } - $response = $event->getResponse(); $request = $event->getRequest();