Replies: 2 comments
-
While inspecting the code I realize that there is an But still, I also have had these problems before with other auto configurations. |
Beta Was this translation helpful? Give feedback.
0 replies
-
the answer is "it depends".
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Something that I'm wondering for years now. We heavily rely on auto wire and configuration.
Let's say you have a custom Doctrine DBAL driver:
Because of the following code, it's automatically tagged with
doctrine.middleware
:https://github.com/doctrine/DoctrineBundle/blob/33bec0ed3e858670585eb9285fe003c8b616623e/src/DependencyInjection/DoctrineExtension.php#L224
But I want to give it priority. I tried doing it with
#[AsTaggedItem]
but that's not working.So I do this:
It works, but now the service has 2 tags defined:
What's the way to deal with such situations? There is no way to turn off this auto configuration from an attribute. I basically want to override it, not duplicate it.
Beta Was this translation helpful? Give feedback.
All reactions