You are here

purl.services.yml in Persistent URL 8

File

purl.services.yml
View source
  1. services:
  2. purl.plugin.method_manager:
  3. class: Drupal\purl\Plugin\MethodPluginManager
  4. parent: default_plugin_manager
  5. calls:
  6. - [setContainer, [ '@service_container' ]]
  7. purl.plugin.provider_manager:
  8. class: Drupal\purl\Plugin\ProviderManager
  9. parent: default_plugin_manager
  10. calls:
  11. - [setContainer, [ '@service_container' ]]
  12. - [setConnection, [ '@database' ]]
  13. purl.modifier_index:
  14. class: Drupal\purl\Plugin\ModifierIndex
  15. arguments:
  16. - '@purl.plugin.provider_manager'
  17. - '@database'
  18. #purl.identifier_provider.composite:
  19. #class: Drupal\purl\Plugin\Purl\Identifier\CompositeIdentifierProvider
  20. #arguments:
  21. #- [ '@purl.identifier_provider.test' ]
  22. purl.request_subscriber:
  23. class: Drupal\purl\Event\RequestSubscriber
  24. arguments:
  25. - '@purl.modifier_index'
  26. - '@purl.plugin.provider_manager'
  27. - '@purl.plugin.method_manager'
  28. - '@purl.matched_modifiers'
  29. tags:
  30. - { name: event_subscriber }
  31. cache_context.purl:
  32. class: Drupal\purl\Cache\Context\PurlCacheContext
  33. tags:
  34. - { name: event_subscriber }
  35. - { name: cache.context }
  36. purl.rebuild_index:
  37. class: Drupal\purl\Event\RebuildIndex
  38. arguments:
  39. - '@purl.modifier_index'
  40. tags:
  41. - { name: event_subscriber }
  42. purl.outbound_path_processor:
  43. class: Drupal\purl\PathProcessor\PurlContextOutboundPathProcessor
  44. arguments:
  45. - '@purl.plugin.method_manager'
  46. tags:
  47. - { name: event_subscriber }
  48. - { name: path_processor_outbound, priority: 300 }
  49. purl.outbound_route_processor:
  50. class: Drupal\purl\RouteProcessor\PurlContextOutboundRouteProcessor
  51. arguments:
  52. - '@purl.plugin.method_manager'
  53. tags:
  54. - { name: event_subscriber }
  55. - { name: route_processor_outbound, priority: 300 }
  56. # @TODO: Consider decorating @url_generator.non_bubbling instead.
  57. purl.url_generator:
  58. class: Drupal\purl\Routing\UrlGenerator
  59. arguments: ['@url_generator.non_bubbling']
  60. calls:
  61. - [setContext, ['@?router.request_context']]
  62. purl.matched_modifiers:
  63. class: Drupal\purl\MatchedModifiers