You are here

ip_ban.services.yml in IP Ban 8

File

ip_ban.services.yml
View source
  1. services:
  2. ip_ban.manager:
  3. class: Drupal\ip_ban\IpBanSetBanManager
  4. tags:
  5. - { name: backend_overridable }
  6. ip_ban_event_subscriber:
  7. class: Drupal\ip_ban\EventSubscriber\IpBanSubscriber
  8. arguments: ['@ip_ban.manager']
  9. tags:
  10. - {name: event_subscriber}
  11. ban.middleware:
  12. class: Drupal\ip_ban\IpBanMiddleware
  13. arguments: ['@ip_ban.manager']
  14. tags:
  15. # Needs to work when caching is enabled; priority of 10 seems to work.
  16. - { name: http_middleware, priority: 10 }