Update getDrupalVersion method for D10

Created on 25 January 2023, almost 2 years ago

Drupal Version : 10.x

Domain module version : 2.0.x-dev

Wrong class is used when you are activating Domain Source submodule : DomainSourceRedirectResponseSubscriberD8 instead of DomainSourceRedirectResponseSubscriber.

Steps to reproduce

When you want to activate Domain Source module, wrong class is used, and then when you update getDrupalVersion method to get the version 10, this fatal error is displayed :

Fatal error: Type of Drupal\domain_source\EventSubscriber\DomainSourceRedirectResponseSubscriber::$requestContext must be Drupal\Core\Routing\RequestContext (as in class Drupal\Core\EventSubscriber\RedirectResponseSubscriber)

Patch is updating getDrupalVersion method, and also remove the property $requestContext from extended class.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France benjbmc

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

Comments & Activities

Production build 0.71.5 2024