Convert both BookNavigationCacheContext and MenuActiveTrailsCacheContext to use lazy services

Created on 27 October 2023, 8 months ago
Updated 23 November 2023, 7 months ago

Problem/Motivation

In πŸ“Œ Update to Symfony 6.4 Needs work we decided to convert both BookNavigationCacheContext and MenuActiveTrailsCacheContext to use lazy services.

This issue was created to do just that.

Currently both classes are container aware, so not to load an expensive service when not needed.

Steps to reproduce

Proposed resolution

- Change \Drupal\book\BookManager and \Drupal\Core\Menu\MenuActiveTrail to laze loading services.
- Remove container awareness from BookNavigationCacheContext and MenuActiveTrailsCacheContext

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.2 ✨

Component
BaseΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡³πŸ‡±Netherlands Spokje

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

Comments & Activities

Production build 0.69.0 2024