Fix deprecation error: Calling Sql::__construct() without the $migration_manager

Created on 5 March 2024, 9 months ago
Updated 26 March 2024, 8 months ago

Problem/Motivation

Deprecation error surfaces when running any migrations:

Calling Sql::__construct() without the $migration_manager argument is deprecated in drupal:9.5.0 and the $migration_manager argument will be required in drupal:11.0.0. See https://www.drupal.org/node/3277306

See: https://www.drupal.org/node/3277306 β†’

Steps to reproduce

  1. Run any migration.
  2. Observe the indicated error message in Drupal watchdog.

Proposed resolution

  1. Inject the "plugin.manager.migration" service in to class Drupal\acquia_migrate\Plugin\migrate\id_map\SqlWithCentralizedMessageStorage and pass it to parent constructor.

Remaining tasks

  1. MR the resolution.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

1.9

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jienckebd

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024