You are here

restrict_by_ip.services.yml in Restrict Login or Role Access by IP Address 8.4

File

restrict_by_ip.services.yml
View source
  1. services:
  2. restrict_by_ip.ip_tools:
  3. class: Drupal\restrict_by_ip\IPTools
  4. arguments: ["@config.factory"]
  5. restrict_by_ip.login_firewall:
  6. class: Drupal\restrict_by_ip\LoginFirewall
  7. arguments: ["@restrict_by_ip.ip_tools","@config.factory","@logger.factory","@unrouted_url_assembler"]
  8. restrict_by_ip.firewall_subscriber:
  9. class: Drupal\restrict_by_ip\EventSubscriber\FirewallSubscriber
  10. arguments: ["@restrict_by_ip.login_firewall","@current_user"]
  11. tags:
  12. - { name: event_subscriber }
  13. restrict_by_ip.role_firewall:
  14. class: Drupal\restrict_by_ip\RoleFirewall
  15. arguments: ["@restrict_by_ip.ip_tools","@config.factory","@entity_type.manager"]