You are here

anonymous_token.services.yml in Anonymous CSRF Token 2.x

File

anonymous_token.services.yml
View source
  1. services:
  2. anonymous_token.csrf_token:
  3. class: Drupal\anonymous_token\Access\AnonymousCsrfTokenGenerator
  4. arguments: ['@private_key', '@session_manager.metadata_bag', '@session', '@config.factory', '@current_user']
  5. access_check.anonymous_token.csrf:
  6. class: Drupal\anonymous_token\Access\AnonymousCsrfAccessCheck
  7. tags:
  8. - { name: access_check, applies_to: _anonymous_csrf_token, needs_incoming_request: TRUE }
  9. arguments: ['@anonymous_token.csrf_token']