simple_sitemap.services.yml 1.35 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 9 10 11
      - '@simple_sitemap.sitemap_generator'
      - '@config.factory'
      - '@database'
      - '@entity_type.manager'
      - '@path.validator'
      - '@date.formatter'
12 13 14

  simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\SitemapGenerator
15 16
    public: false
    arguments:
17 18 19 20
      - '@simple_sitemap.batch'
      - '@database'
      - '@module_handler'
      - '@language_manager'
21

22 23
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
24 25
    public: true
    arguments:
26 27
      - '@simple_sitemap.generator'
      - '@current_user'
28

29 30
  simple_sitemap.batch:
    class: Drupal\simple_sitemap\Batch\Batch
31
    public: false
32

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

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
    prublic: false
    arguments:
48 49
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
50 51 52

  logger.channel.simple_sitemap:
    parent: logger.channel_base
Pawel G's avatar
Pawel G committed
53
    prublic: false
Pawel G's avatar
Pawel G committed
54 55
    arguments:
      - simple_sitemap