Support ServiceClosureArgument in \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::dumpValue

Created on 22 January 2020, over 4 years ago
Updated 5 October 2023, 9 months ago

Problem/Motivation

Symfony services can have arrays as arguments that contain services that are wrapped in a memoizing closure.

Those arguments are then converted to \Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument by the container builder.

They are not supported by \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::dumpValue().

Proposed resolution

Convert \Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument to an array so we can dump it.

Remaining tasks

User interface changes

None

API changes

No change.

Data model changes

None

Feature request
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated about 3 hours ago

Created by

🇳🇱Netherlands bonrita

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