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

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

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

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

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

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

  logger.channel.simple_sitemap:
    parent: logger.channel_base
52
    public: false
Pawel G's avatar
Pawel G committed
53 54
    arguments:
      - simple_sitemap
55 56 57 58

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager
59 60 61 62

  plugin.manager.simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorManager
    parent: default_plugin_manager