bug #40138 [FrameworkBundle] fix registering "annotations.cache" on the "container.hot_path" (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] fix registering "annotations.cache" on the "container.hot_path"

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Because `annotations.cache` is registered in a quite special way (see #25696), `ResolveHotPathPass` cannot propagate the `container.hot_path` tag to it.

Let's add the tag explicitly since this service is always on the hot path anyway.

Spotted with Blackfire.io as usual.

Commits
-------

e196c1ecb3 [FrameworkBundle] fix registering "annotations.cache" on the "container.hot_path"
This commit is contained in:
Nicolas Grekas 2021-02-10 12:37:42 +01:00
commit c75687fdb1
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@
<argument type="service" id="cache.annotations" />
</service>
</argument>
<tag name="container.hot_path" />
</service>
<service id="annotation_reader" alias="annotations.reader" />