Fix deprecated services

Created on 18 August 2020, almost 4 years ago
Updated 20 January 2023, over 1 year ago

Problem/Motivation

The Service "user.private_tempstore" is deprecated for Drupal 9.x and must be replaced with the new Service "tempstore.private".

Steps to reproduce

Use Drupal core 9.x, enable the module and will see a php error

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "user.private_tempstore". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

Proposed resolution

Replace deprecated Service.

πŸ› Bug report
Status

Fixed

Version

3.2

Component

Code

Created by

πŸ‡¬πŸ‡·Greece TheodorosPloumis Greece

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

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.69.0 2024