Problem/Motivation
Symfony 3.4 provides a shortcut to inject all services tagged with a specific tag, which is a common need in some applications, so you don't have to write a compiler pass just for that.
However, when you use a tagged argument, that argument is converted to \Symfony\Component\Yaml\Tag\TaggedValue by the container builder.
These types of arguments are not supported by \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::dumpValue().
Proposed resolution
Convert \Symfony\Component\Yaml\Tag\TaggedValue to a string so we can dump it.
Remaining tasks
User interface changes
None
API changes
No change.
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 3108039-nr-bot.txt | 152 bytes | needs-review-queue-bot |
| #8 | 3108039-8-complete.patch | 3.29 KB | bonrita |
| #8 | 3108039-8-tests.patch | 2.09 KB | bonrita |
Comments
Comment #2
bonrita commentedComment #3
longwaveComment #5
bonrita commentedComment #6
bonrita commentedComment #7
bonrita commentedComment #8
bonrita commentedComment #9
longwaveIf you change the status to "needs review" and upload a patch, the tests will automatically run.
Comment #10
bonrita commentedThanks @longwave for the information. Let me do that.
Comment #11
bonrita commentedComment #18
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #20
andypostit still makes sense as SF parser is default now