File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace App\EventListener;
19
19
20
20
use ApiPlatform\Core\Util\RequestAttributesExtractor;
21
21
use Symfony\Component\HttpFoundation\Request;
22
- use Symfony\Component\HttpKernel\Event\GetResponseEvent ;
22
+ use Symfony\Component\HttpKernel\Event\RequestEvent ;
23
23
use ApiPlatform\Core\EventListener\DeserializeListener as DecoratedListener;
24
24
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
25
25
use ApiPlatform\Core\Serializer\SerializerContextBuilderInterface;
@@ -37,7 +37,7 @@ final class DeserializeListener
37
37
$this->decorated = $decorated;
38
38
}
39
39
40
- public function onKernelRequest(GetResponseEvent $event): void {
40
+ public function onKernelRequest(RequestEvent $event): void {
41
41
$request = $event->getRequest();
42
42
if ($request->isMethodCacheable(false) || $request->isMethod(Request::METHOD_DELETE)) {
43
43
return;
You can’t perform that action at this time.
0 commit comments