You are here

csp.services.yml in Content-Security-Policy 8

File

csp.services.yml
View source
  1. services:
  2. csp.response_listener:
  3. class: Drupal\csp\EventSubscriber\ResponseCspSubscriber
  4. arguments:
  5. - '@config.factory'
  6. - '@csp.library_policy_builder'
  7. - '@plugin.manager.csp_reporting_handler'
  8. - '@event_dispatcher'
  9. tags:
  10. - { name: event_subscriber }
  11. csp.library_policy_builder:
  12. class: Drupal\csp\LibraryPolicyBuilder
  13. arguments:
  14. - '@cache.default'
  15. - '@module_handler'
  16. - '@theme_handler'
  17. - '@library.discovery'
  18. plugin.manager.csp_reporting_handler:
  19. class: Drupal\csp\ReportingHandlerPluginManager
  20. parent: default_plugin_manager
  21. csp.core_csp_subscriber:
  22. class: Drupal\csp\EventSubscriber\CoreCspSubscriber
  23. arguments:
  24. - '@library.dependency_resolver'
  25. - '@module_handler'
  26. tags:
  27. - { name: event_subscriber }
  28. csp.ie9_csp_subscriber:
  29. class: Drupal\csp\EventSubscriber\Ie9CspSubscriber
  30. arguments:
  31. - '@config.factory'
  32. - '@module_handler'
  33. tags:
  34. - { name: event_subscriber }
  35. logger.channel.csp:
  36. parent: logger.channel_base
  37. arguments: ['csp']