Skip to content

Commit c65a8e9

Browse files
authored
Merge pull request #1175 from Zowac/fix-response-event-deprecation
Fix: GetResponseEvent deprecation
2 parents 4321e37 + 4df271e commit c65a8e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/form-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace App\EventListener;
1919

2020
use ApiPlatform\Core\Util\RequestAttributesExtractor;
2121
use Symfony\Component\HttpFoundation\Request;
22-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
22+
use Symfony\Component\HttpKernel\Event\RequestEvent;
2323
use ApiPlatform\Core\EventListener\DeserializeListener as DecoratedListener;
2424
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
2525
use ApiPlatform\Core\Serializer\SerializerContextBuilderInterface;
@@ -37,7 +37,7 @@ final class DeserializeListener
3737
$this->decorated = $decorated;
3838
}
3939

40-
public function onKernelRequest(GetResponseEvent $event): void {
40+
public function onKernelRequest(RequestEvent $event): void {
4141
$request = $event->getRequest();
4242
if ($request->isMethodCacheable(false) || $request->isMethod(Request::METHOD_DELETE)) {
4343
return;

0 commit comments

Comments
 (0)