ban.services.yml

Same filename in other branches
  1. 9 core/modules/ban/ban.services.yml
  2. 8.9.x core/modules/ban/ban.services.yml
  3. 10 core/modules/ban/ban.services.yml
core/modules/ban/ban.services.yml

File

core/modules/ban/ban.services.yml

View source
  1. parameters:
  2. ban.hooks_converted: true
  3. services:
  4. _defaults:
  5. autoconfigure: true
  6. ban.ip_manager:
  7. class: Drupal\ban\BanIpManager
  8. arguments: ['@database']
  9. tags:
  10. - { name: backend_overridable }
  11. Drupal\ban\BanIpManagerInterface: '@ban.ip_manager'
  12. ban.middleware:
  13. class: Drupal\ban\BanMiddleware
  14. arguments: ['@ban.ip_manager']
  15. tags:
  16. # Ensure to come before page caching, so you don't serve cached pages to
  17. # banned users.
  18. - { name: http_middleware, priority: 250 }

Services

Title Deprecated Summary
ban.ip_manager Drupal\ban\BanIpManager
ban.middleware Drupal\ban\BanMiddleware
Drupal\ban\BanIpManagerInterface
_defaults

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.