Use RequestEvent instead of GetResponseEvent (deprecated)

Created on 7 May 2024, about 2 months ago

Problem/Motivation

I'm getting the following error after upgrade the core to v10.2 from v9.5.11

Drupal\entity_legal\EventSubscriber\EntityLegalSubscriber::checkRedirect(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Event\GetResponseEvent, Symfony\Component\HttpKernel\Event\RequestEvent given" at modules/contrib/entity_legal/src/EventSubscriber/EntityLegalSubscriber.php line 22

Steps to reproduce

Upgrade to v10.2 using entity_legal 3.0.0-beta5 and navigate to any page.

Proposed resolution

Use the class RequestEvent instead of GetResponseEvent.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇵Japan eleonel Itoshima 🇯🇵

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024