Convert both BookNavigationCacheContext and MenuActiveTrailsCacheContext to use lazy services

Created on 27 October 2023, about 1 year ago
Updated 23 November 2023, about 1 year 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 4 hours 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.71.5 2024