simple_sitemap.services.yml 2.78 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

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

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

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

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

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

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

83 84
  logger.channel.simple_sitemap:
    parent: logger.channel_base
85
    public: false
86 87
    arguments:
      - simple_sitemap
88 89 90 91

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

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

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