Closed (fixed)
Project:
Tracer API
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2023 at 23:45 UTC
Updated:
22 Sep 2025 at 18:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
akshaydalvi212 commentedI will work on updating the service.yml for creating new service decorator.
Comment #3
akshaydalvi212 commentedI tried to create the service decorator and replace it in the service.yml file.
Providing the #3 patch file.
kindly review.
Comment #4
anybodyI think this might also lower the risk for bugs and incompatibilities in the future?
Comment #5
lussolucaThe actual patch fails with this error:
Comment #6
el7cosmosComment #8
el7cosmosI created an MR to decorate the event dispatcher service instead, but this only works in 10.3.
If we want this on 10.2 also, we can create a compiler pass similar to https://git.drupalcode.org/project/drupal/-/commit/6e733866fe414d0521be3... that only works for <10.3 (eg using deprecation helper)
Comment #9
lussolucaProbably, decorating the event_subscriber is no longer possible until #2909185: Replace ContainerAwareEventDispatcher with Symfony EventDispatcher lands on Drupal 11 (required changes have been reverted in #3445525: Add BC layer for contrib modules using ContainerAwareEventDispatcher as a typehint (BC fix for #2909185))
Comment #10
bkosborneLooks like this was already done in this commit which was released in 1.1.0.