Update to support path redirect import migrate_tools 6.0.2

Created on 6 July 2023, over 1 year ago
Updated 29 January 2024, 11 months ago

Problem/Motivation

Migrate tools released an update that changed the class namespace. This module needs to update to avoid a critical error like:
Error: Class "Drupal\migrate_tools\Commands\MigrateToolsCommands" not found in include() (line 27 of /var/www/html/web/modules/contrib/path_redirect_import/src/Commands/PathRedirectImportCommands.php)

Here is the link to the commit that broke this module: https://git.drupalcode.org/project/migrate_tools/-/commit/748cc794a163bf...

Steps to reproduce

Install path_redirect_import on Drupal 10.1.5:

composer require 'drupal/path_redirect_import:^2.0'

Update to 6.0 version of migrate_tools:

composer require 'drupal/migrate_tools:^6.0'

Run a drush cache clear, you should see an error:

Error: Class "Drupal\migrate_tools\Commands\MigrateToolsCommands" not found in include() (line 27 of /var/www/html/web/modules/contrib/path_redirect_import/src/Commands/PathRedirectImportCommands.php)

Proposed resolution

Update module code so the proper path to the migrate_tools dependency is used.

Remaining tasks

None.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States pookmish

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024