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

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

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

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

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

41 42
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
43
    public: true
44
    arguments:
45
      - '@logger.channel.simple_sitemap'
46
      - '@messenger'
47
      - '@current_user'
48 49 50

  logger.channel.simple_sitemap:
    parent: logger.channel_base
51
    public: false
52 53
    arguments:
      - simple_sitemap
54 55 56 57

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

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