simple_sitemap.services.yml 1.66 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
      - '@config.factory'
      - '@database'
10
      - '@entity.query'
11 12 13
      - '@entity_type.manager'
      - '@path.validator'
      - '@date.formatter'
14 15 16

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

25 26 27 28 29 30
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'

31 32
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
33 34
    public: true
    arguments:
35
      - '@simple_sitemap.generator'
36
      - '@simple_sitemap.entity_helper'
37
      - '@current_user'
38

39 40
  simple_sitemap.batch:
    class: Drupal\simple_sitemap\Batch\Batch
41
    public: false
42

43 44
  simple_sitemap.batch_url_generator:
    class: Drupal\simple_sitemap\Batch\BatchUrlGenerator
45 46
    public: true
    arguments:
Pawel G's avatar
Pawel G committed
47
      - '@simple_sitemap.generator'
48 49 50 51 52 53
      - '@simple_sitemap.sitemap_generator'
      - '@language_manager'
      - '@entity_type.manager'
      - '@path.validator'
      - '@entity.query'
      - '@simple_sitemap.logger'
Pawel G's avatar
Pawel G committed
54 55 56

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
57
    public: false
Pawel G's avatar
Pawel G committed
58
    arguments:
59 60
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
61 62 63

  logger.channel.simple_sitemap:
    parent: logger.channel_base
64
    public: false
Pawel G's avatar
Pawel G committed
65 66
    arguments:
      - simple_sitemap