simple_sitemap.services.yml 1.45 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 7 8
      - '@simple_sitemap.sitemap_generator'
      - '@config.factory'
      - '@database'
9
      - '@entity.query'
10 11 12
      - '@entity_type.manager'
      - '@path.validator'
      - '@date.formatter'
Pawel G's avatar
Pawel G committed
13
      - '@datetime.time'
14 15 16

  simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\SitemapGenerator
17 18
    public: false
    arguments:
19 20 21 22
      - '@simple_sitemap.batch'
      - '@database'
      - '@module_handler'
      - '@language_manager'
Pawel G's avatar
Pawel G committed
23
      - '@datetime.time'
24

25 26
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
27 28
    public: true
    arguments:
29 30
      - '@simple_sitemap.generator'
      - '@current_user'
31

32 33
  simple_sitemap.batch:
    class: Drupal\simple_sitemap\Batch\Batch
34
    public: false
35

36 37
  simple_sitemap.batch_url_generator:
    class: Drupal\simple_sitemap\Batch\BatchUrlGenerator
38 39
    public: true
    arguments:
Pawel G's avatar
Pawel G committed
40
      - '@simple_sitemap.generator'
41 42 43 44 45 46
      - '@simple_sitemap.sitemap_generator'
      - '@language_manager'
      - '@entity_type.manager'
      - '@path.validator'
      - '@entity.query'
      - '@simple_sitemap.logger'
Pawel G's avatar
Pawel G committed
47 48 49

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
50
    public: false
Pawel G's avatar
Pawel G committed
51
    arguments:
52 53
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
54 55 56

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