simple_sitemap.services.yml 2.11 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 9
      - '@config.factory'
      - '@database'
      - '@entity_type.manager'
10
      - '@entity_type.bundle.info'
11 12
      - '@path.validator'
      - '@date.formatter'
13
      - '@datetime.time'
14
      - '@module_handler'
15
      - '@simple_sitemap.batch'
16
      - '@plugin.manager.simple_sitemap.url_generator'
17
      - '@plugin.manager.simple_sitemap.sitemap_generator'
18
      - '@plugin.manager.simple_sitemap.sitemap_type'
19 20

  simple_sitemap.sitemap_writer:
21 22
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapWriter
    public: true
23

24 25 26 27 28
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
29
      - '@database'
30

31 32
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
33 34
    public: true
    arguments:
35
      - '@simple_sitemap.generator'
36
      - '@simple_sitemap.entity_helper'
37
      - '@current_user'
38

39
  simple_sitemap.batch:
40
    class: Drupal\simple_sitemap\Batch
41
    public: false
42

Pawel G's avatar
Pawel G committed
43 44
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
45
    public: true
Pawel G's avatar
Pawel G committed
46
    arguments:
47
      - '@logger.channel.simple_sitemap'
48
      - '@messenger'
49
      - '@current_user'
Pawel G's avatar
Pawel G committed
50

51 52 53 54 55
  simple_sitemap.variant:
    class: Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariant
    tags:
      - { name: path_processor_inbound, priority: 300 }

Pawel G's avatar
Pawel G committed
56 57
  logger.channel.simple_sitemap:
    parent: logger.channel_base
58
    public: false
Pawel G's avatar
Pawel G committed
59 60
    arguments:
      - simple_sitemap
61 62 63 64

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager
65 66 67 68

  plugin.manager.simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorManager
    parent: default_plugin_manager
69 70 71 72

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