You are here

masquerade.services.yml in Masquerade 8.2

File

masquerade.services.yml
View source
  1. services:
  2. masquerade:
  3. class: Drupal\masquerade\Masquerade
  4. arguments: ['@current_user', '@entity_type.manager', '@module_handler', '@session_manager', '@session', '@logger.channel.masquerade', '@user.permissions']
  5. logger.channel.masquerade:
  6. parent: logger.channel_base
  7. arguments: ['masquerade']
  8. access_check.masquerade.switch:
  9. class: Drupal\masquerade\Access\SwitchAccessCheck
  10. arguments: ['@masquerade']
  11. tags:
  12. - { name: access_check, applies_to: _masquerade_switch_access }
  13. access_check.masquerade.unmasquerade:
  14. class: Drupal\masquerade\Access\UnmasqueradeAccessCheck
  15. arguments: ['@masquerade']
  16. tags:
  17. - { name: access_check, applies_to: _user_is_masquerading }
  18. cache_context.session.is_masquerading:
  19. class: Drupal\masquerade\Cache\MasqueradeCacheContext
  20. arguments: ['@request_stack']
  21. tags:
  22. - { name: cache.context }
  23. masquerade.callbacks:
  24. class: Drupal\masquerade\MasqueradeCallbacks
  25. arguments: ['@entity_type.manager', '@masquerade']