Skip to content

Commit

Permalink
BC
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 authored Jul 1, 2021
1 parent 08fee91 commit 01e8523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Listener/DisableHtmlFormValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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()) {
Expand Down

0 comments on commit 01e8523

Please sign in to comment.