{% import '_lib/di.twig' as di %}
services:
  {{ machine_name }}.route_subscriber:
    class: Drupal\{{ machine_name }}\EventSubscriber\{{ class }}
{% if services %}
    arguments: [{{ di.arguments(services) }}]
{% endif %}
    tags:
      - { name: event_subscriber }
