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

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

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

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

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

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

  logger.channel.simple_sitemap:
    parent: logger.channel_base
49
    public: false
Pawel G's avatar
Pawel G committed
50 51
    arguments:
      - simple_sitemap
52 53 54 55

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

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