simple_sitemap.services.yml 1.4 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'
13 14 15

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

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

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

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

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
    prublic: false
    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
Pawel G's avatar
Pawel G committed
55
    prublic: false
Pawel G's avatar
Pawel G committed
56 57
    arguments:
      - simple_sitemap