Skip to content

Commit 4df271e

Browse files
committed
Fix: GetResponseEvent deprecation
- GetResponseEvent is deprecated since Symfony 4.3, use RequestEvent instead
1 parent c24ee52 commit 4df271e

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)