properties of a service from the class of the service itself

0

I have a service defined in my application as follows:

jakala.coches_transformer:
    class: Jakala\Transformer\CocheTransformer
    tags:
        - { name: jakala.BaseTransformer, alias: coche }

As such, the CompilerPass that I have allows to load several of these services under the name of jakala.BaseTransformer , with which the dependency injector allows me to select those that are of that name, and with the aliases or aliases that I put .

The question I have is if I can know, from the class CocheTransformer , which is a service, what name it has and what alias it has.

I think it's a matter of knowing the information that the container has from my class, but it does not seem sensible to inject the entire container into the service ...

    
asked by Jakala 22.10.2018 в 23:53
source

0 answers