simple_sitemap.services.yml 2.83 KB
Newer Older
Pawel G's avatar
Pawel G committed
1
services:
2 3
  simple_sitemap.generator:
    class: Drupal\simple_sitemap\Simplesitemap
4 5
    public: true
    arguments:
6
      - '@simple_sitemap.entity_helper'
7 8
      - '@simple_sitemap.settings'
      - '@simple_sitemap.manager'
9 10 11
      - '@config.factory'
      - '@database'
      - '@entity_type.manager'
12
      - '@entity_type.bundle.info'
13 14
      - '@path.validator'
      - '@date.formatter'
15
      - '@datetime.time'
16
      - '@module_handler'
17 18 19 20
      - '@simple_sitemap.queue_worker'

  simple_sitemap.manager:
    class: Drupal\simple_sitemap\SimplesitemapManager
Pawel G's avatar
Pawel G committed
21
    public: false
22 23
    arguments:
    - '@config.factory'
24
    - '@database'
25 26 27
    - '@plugin.manager.simple_sitemap.sitemap_type'
    - '@plugin.manager.simple_sitemap.url_generator'
    - '@plugin.manager.simple_sitemap.sitemap_generator'
Pawel G's avatar
Pawel G committed
28
    - '@simple_sitemap.settings'
29 30 31

  simple_sitemap.settings:
    class: Drupal\simple_sitemap\SimplesitemapSettings
Pawel G's avatar
Pawel G committed
32
    public: false
33 34 35 36 37 38 39 40 41 42 43
    arguments:
    - '@config.factory'

  simple_sitemap.queue_worker:
    class: Drupal\simple_sitemap\Queue\QueueWorker
    public: true
    arguments:
    - '@simple_sitemap.settings'
    - '@simple_sitemap.manager'
    - '@state'
    - '@module_handler'
Pawel G's avatar
Pawel G committed
44
    - '@simple_sitemap.queue'
45

Pawel G's avatar
Pawel G committed
46 47
  simple_sitemap.queue:
    class: Drupal\simple_sitemap\Queue\SimplesitemapQueue
48 49 50 51
    public: false
    arguments:
    - 'simple_sitemap_elements'
    - '@database'
52 53

  simple_sitemap.sitemap_writer:
54 55
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapWriter
    public: true
56

57 58 59 60 61
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
62
      - '@database'
63

64 65
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
66 67
    public: true
    arguments:
68
      - '@simple_sitemap.generator'
69
      - '@simple_sitemap.entity_helper'
70
      - '@current_user'
71

Pawel G's avatar
Pawel G committed
72 73
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
74
    public: true
Pawel G's avatar
Pawel G committed
75
    arguments:
76
      - '@logger.channel.simple_sitemap'
77
      - '@messenger'
78
      - '@current_user'
Pawel G's avatar
Pawel G committed
79

80 81 82 83 84
  simple_sitemap.variant:
    class: Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariant
    tags:
      - { name: path_processor_inbound, priority: 300 }

Pawel G's avatar
Pawel G committed
85 86
  logger.channel.simple_sitemap:
    parent: logger.channel_base
87
    public: false
Pawel G's avatar
Pawel G committed
88 89
    arguments:
      - simple_sitemap
90 91 92 93

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager
94 95 96 97

  plugin.manager.simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorManager
    parent: default_plugin_manager
98 99 100 101

  plugin.manager.simple_sitemap.sitemap_type:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapType\SitemapTypeManager
    parent: default_plugin_manager