Question
I have a Symfony project with some tagged services, and I'd like to enforce that every class implementing a given interface has the expected tag applied in the container.
I was wondering if this could be currently feasible using phpat... I've read the documentation, checked the examples, and got an idea about how a custom rule is built, but in my specific case I'd need something where I could inject the container, which seems not possible to me.
Am I missing something? If not, do you think it could be implemented somehow in the future?
Or maybe you have some alternate suggestions about how could I enforce my costraint?
Thanks in advance
Question
I have a Symfony project with some tagged services, and I'd like to enforce that every class implementing a given interface has the expected tag applied in the container.
I was wondering if this could be currently feasible using phpat... I've read the documentation, checked the examples, and got an idea about how a custom rule is built, but in my specific case I'd need something where I could inject the container, which seems not possible to me.
Am I missing something? If not, do you think it could be implemented somehow in the future?
Or maybe you have some alternate suggestions about how could I enforce my costraint?
Thanks in advance