You are here

ban.services.yml in Drupal 10

core/modules/ban/ban.services.yml

File

core/modules/ban/ban.services.yml
View source
  1. services:
  2. ban.ip_manager:
  3. class: Drupal\ban\BanIpManager
  4. arguments: ['@database']
  5. tags:
  6. - { name: backend_overridable }
  7. ban.middleware:
  8. class: Drupal\ban\BanMiddleware
  9. arguments: ['@ban.ip_manager']
  10. tags:
  11. # Ensure to come before page caching, so you don't serve cached pages to
  12. # banned users.
  13. - { name: http_middleware, priority: 250 }