simple_sitemap.services.yml 2.85 KB
Newer Older
gbyte.co's avatar
gbyte.co 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 17 18 19
      - '@simple_sitemap.queue_worker'

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

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

  simple_sitemap.queue_worker:
    class: Drupal\simple_sitemap\Queue\QueueWorker
    public: true
    arguments:
    - '@simple_sitemap.settings'
    - '@simple_sitemap.manager'
    - '@state'
gbyte.co's avatar
gbyte.co committed
42
    - '@simple_sitemap.queue'
43
    - '@simple_sitemap.logger'
44

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

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

56 57 58 59 60
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
61
      - '@database'
62
      - '@entity_type.bundle.info'
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

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

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

85 86
  logger.channel.simple_sitemap:
    parent: logger.channel_base
87
    public: false
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