Parameter $event of method Drupal\form_test\EventSubscriber\FormTestEventSubscriber::onKernelRequest() has typehint
with deprecated class Symfony\Component\HttpKernel\Event\GetResponseEvent:
since Symfony 4.3, use RequestEvent instead
33 Parameter $event of method Drupal\form_test\EventSubscriber\FormTestEventSubscriber::onKernelResponse() has typehint
with deprecated class Symfony\Component\HttpKernel\Event\FilterResponseEvent:
since Symfony 4.3, use ResponseEvent instead

CommentFileSizeAuthor
#9 3113884-9.patch65.98 KBravi.shankar
#3 3113884-3.patch8.61 KBhimmatbhatia

Comments

himmatbhatia created an issue. See original summary.

himmatbhatia’s picture

Assigned: Unassigned » himmatbhatia
Issue summary: View changes
himmatbhatia’s picture

Assigned: himmatbhatia » Unassigned
Issue summary: View changes
StatusFileSize
new8.61 KB

use RequestEvent and use ResponseEvent in plaace of GetResponseEvent and ResponseEvent instead of FilterResponseEvent:
Fixed from whole module

chi’s picture

Title: use RequestEvent and use ResponseEvent in plaace of GetResponseEvent and ResponseEvent instead of FilterResponseEvent: » Remove usage of deprecated GetResponseEvent and FilterResponseEvent classes
Component: system.module » base system
Status: Needs review » Needs work

There are much more occurrences of these classes in Drupal code.

chi’s picture

himmatbhatia’s picture

himmatbhatia’s picture

himmatbhatia’s picture

ravi.shankar’s picture

Status: Needs work » Needs review
StatusFileSize
new65.98 KB

Here this patch might fix this issue.

longwave’s picture

I think this is a duplicate of #3094398: Update Symfony response and request events to new classes - the patch there is significantly larger so I guess something is missing from this one?

xjm’s picture

xjm’s picture

Status: Needs review » Closed (duplicate)