anonymous_token.services.yml in Anonymous CSRF Token 2.x
File
anonymous_token.services.ymlView source
- services:
- anonymous_token.csrf_token:
- class: Drupal\anonymous_token\Access\AnonymousCsrfTokenGenerator
- arguments: ['@private_key', '@session_manager.metadata_bag', '@session', '@config.factory', '@current_user']
- access_check.anonymous_token.csrf:
- class: Drupal\anonymous_token\Access\AnonymousCsrfAccessCheck
- tags:
- - { name: access_check, applies_to: _anonymous_csrf_token, needs_incoming_request: TRUE }
- arguments: ['@anonymous_token.csrf_token']