MyNamespace\Service\MyService:
autowire: true
tags:
- {name: app.my_tag}
class MyClass implements MyInterfaceForTagging{
}
# app/config/services.yml
services:
_instanceof:
MyNamespace\Service\MyInterfaceForTagging:
tags: ['app.my_tag']