Add support for D10 into 4.0.x

Created on 23 January 2023, over 2 years ago
Updated 26 July 2023, almost 2 years ago

Problem/Motivation

When try to enable the version 4.0.x into D10 version the following error is displayed:

TypeError: Drupal\simple_redirect\EventSubscriber\SimpleRedirectRequestSubscriber::onKernalRequestSimpleRedirect(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Event\GetResponseEvent, Symfony\Component\HttpKernel\Event\RequestEvent given in Drupal\simple_redirect\EventSubscriber\SimpleRedirectRequestSubscriber->onKernalRequestSimpleRedirect() (line 33 of modules/contrib/simple_redirect/src/EventSubscriber/SimpleRedirectRequestSubscriber.php).

Proposed resolution

This is because of detracted class Symfony\Component\HttpKernel\Event\GetResponseEvent in favour of

Symfony\Component\HttpKernel\Event\RequestEvent;

To fix that we can exactly the same fix of: #3094398: Update Symfony response and request events to new classes and https://git.drupalcode.org/project/simple_redirect/-/commit/688d91990a9e...

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024