services:
  alternative_frontpage.redirect_homepage:
    class: Drupal\alternative_frontpage\EventSubscriber\RedirectHomepageSubscriber
    arguments: ['@user.data', '@config.factory', '@current_user', '@path.matcher', '@state', '@entity_type.manager', '@language_manager', '@path_alias.repository']
    tags:
      - { name: event_subscriber }
