Remove usage of deprecated GetResponseEvent

Created on 27 July 2023, over 1 year ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

You can install the D10 compatible version by applying the patch https://www.drupal.org/files/issues/2023-07-27/3289377-6.patch

After porting to D9 (highest version) or D10, you may encounter a issue stated above and will fall in to wsod with following error.

TypeError: Drupal\restrict_role_login_by_ip\EventSubscriber\RestrictRoleLoginByIpEventSubscriber::onKernelRequest(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Kernel

Steps to reproduce

Install the module as usual by applying the patch above.

Proposed resolution

Use Symfony\Component\HttpKernel\Event\RequestEvent; in the onKernelRequest.
for more pls refer: https://www.drupal.org/project/drupal/issues/3113884

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇮🇳India mukhtarm

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

Comments & Activities

Production build 0.71.5 2024