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

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

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

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

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

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

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

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