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

  simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\SitemapGenerator
Pawel G's avatar
Pawel G committed
19
    public: true
20
    arguments:
21
      - '@simple_sitemap.entity_helper'
22 23 24
      - '@database'
      - '@module_handler'
      - '@language_manager'
25
      - '@datetime.time'
26

27 28 29 30 31
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
32
      - '@database'
33

34 35
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
36 37
    public: true
    arguments:
38
      - '@simple_sitemap.generator'
39
      - '@simple_sitemap.entity_helper'
40
      - '@current_user'
41

42
  simple_sitemap.batch:
43
    class: Drupal\simple_sitemap\Batch
44
    public: false
45

Pawel G's avatar
Pawel G committed
46 47
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
48
    public: true
Pawel G's avatar
Pawel G committed
49
    arguments:
50 51
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
52 53 54

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

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager