You are here

tome_static.services.yml in Tome 8

modules/tome_static/tome_static.services.yml

File

modules/tome_static/tome_static.services.yml
View source
  1. services:
  2. tome_static.generator:
  3. class: Drupal\tome_static\StaticGenerator
  4. arguments: ['@http_kernel', '@request_stack', '@event_dispatcher', '@cache.tome_static', '@account_switcher', '@file_system']
  5. cache.tome_static:
  6. class: Drupal\tome_static\StaticCache
  7. arguments: ['@database', '@cache_tags.invalidator.checksum']
  8. tags:
  9. - { name: cache.bin }
  10. tome_static.route_path_subscriber:
  11. class: Drupal\tome_static\EventSubscriber\RoutePathSubscriber
  12. arguments: ['@router.route_provider', '@language_manager']
  13. tags:
  14. - { name: event_subscriber }
  15. tome_static.entity_path_subscriber:
  16. class: Drupal\tome_static\EventSubscriber\EntityPathSubscriber
  17. arguments: ['@entity_type.manager', '@language_manager']
  18. tags:
  19. - { name: event_subscriber }
  20. tome_static.exclude_path_subscriber:
  21. class: Drupal\tome_static\EventSubscriber\ExcludePathSubscriber
  22. tags:
  23. - { name: event_subscriber }
  24. tome_static.pager_path_subscriber:
  25. class: Drupal\tome_static\EventSubscriber\PagerPathSubscriber
  26. tags:
  27. - { name: event_subscriber }
  28. tome_static.media_oembed_path_subscriber:
  29. class: Drupal\tome_static\EventSubscriber\MediaOembedPathSubscriber
  30. tags:
  31. - { name: event_subscriber }
  32. tome_static.page_cache_request_policy:
  33. class: Drupal\tome_static\PageCache\RequestPolicy\CoreRequestPolicy
  34. decorates: page_cache_request_policy
  35. arguments: ['@session_configuration']
  36. tome_static.static_command:
  37. class: Drupal\tome_static\Commands\StaticCommand
  38. arguments: ['@tome_static.generator', '@state']
  39. tags:
  40. - { name: console.command }
  41. - { name: drupal.command }
  42. tome_static.static_export_path_command:
  43. class: Drupal\tome_static\Commands\StaticExportPathCommand
  44. arguments: ['@tome_static.generator', '@state', '@tome_static.request_preparer']
  45. tags:
  46. - { name: console.command }
  47. - { name: drupal.command }
  48. tome_static.preview_command:
  49. class: Drupal\tome_static\Commands\StaticPreviewCommand
  50. arguments: ['@tome_static.generator']
  51. tags:
  52. - { name: console.command }
  53. - { name: drupal.command }
  54. tome_static.context.repository:
  55. class: Drupal\tome_static\LazyResettableContextRepository
  56. decorates: context.repository
  57. parent: context.repository
  58. tome_static.path.matcher:
  59. class: Drupal\tome_static\ResettablePathMatcher
  60. decorates: path.matcher
  61. parent: path.matcher
  62. tome_static.request_preparer:
  63. class: Drupal\tome_static\RequestPreparer
  64. arguments: ['@entity_type.manager', '@context.repository', '@path.matcher', '@menu.active_trail', '@event_dispatcher', '@language_manager']
  65. tome_static.preview_request_subscriber:
  66. class: Drupal\tome_static\EventSubscriber\StaticPreviewRequestSubscriber
  67. arguments: ['@tome_static.generator', '@session', '@current_route_match']
  68. tags:
  69. - { name: event_subscriber }