Custom tags for Dependency Injection

I am currently developing a plugin, which shall be reuseable for different customers.
Basically, I need to get certain information from an object in the GUI on preOpenObject. But depending on the customer, this information will be inside different properties or follow different logic.
Therefore, for customization, I wanted to load a “resolverClass” via a dependency injection tag.
I read the documentations for Pimcore and Symfony and I still have a hard time solving my problem. I even tried to adapt the way the provided pimcore tags (for example pimcore.area.brick) are implemented. But I didn’t succeed.

Can somebody help me? Did anybody implement something similar? Do you need more information to help me?

Thanks in advance :wink:

Maybe this helps you getting along: