simple_sitemap.services.yml 2.47 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 15
      - '@simple_sitemap.batch'
      - '@module_handler'
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 43
  simple_sitemap.batch:
    class: Drupal\simple_sitemap\Batch\Batch
44
    public: false
45

Pawel G's avatar
Pawel G committed
46
  simple_sitemap.entity_url_generator:
Pawel G's avatar
Pawel G committed
47
    class: Drupal\simple_sitemap\Batch\Generator\EntityUrlGenerator
Pawel G's avatar
Pawel G committed
48 49 50 51 52 53 54
    public: true
    arguments:
      - '@simple_sitemap.generator'
      - '@simple_sitemap.sitemap_generator'
      - '@language_manager'
      - '@entity_type.manager'
      - '@simple_sitemap.logger'
55
      - '@simple_sitemap.entity_helper'
Pawel G's avatar
Pawel G committed
56 57

  simple_sitemap.custom_url_generator:
Pawel G's avatar
Pawel G committed
58
    class: Drupal\simple_sitemap\Batch\Generator\CustomUrlGenerator
59 60
    public: true
    arguments:
Pawel G's avatar
Pawel G committed
61
      - '@simple_sitemap.generator'
62 63 64 65
      - '@simple_sitemap.sitemap_generator'
      - '@language_manager'
      - '@entity_type.manager'
      - '@simple_sitemap.logger'
66
      - '@simple_sitemap.entity_helper'
Pawel G's avatar
Pawel G committed
67
      - '@path.validator'
Pawel G's avatar
Pawel G committed
68

69
  simple_sitemap.arbitrary_url_generator:
Pawel G's avatar
Pawel G committed
70
    class: Drupal\simple_sitemap\Batch\Generator\ArbitraryUrlGenerator
71 72 73 74 75 76 77 78
    public: true
    arguments:
      - '@simple_sitemap.generator'
      - '@simple_sitemap.sitemap_generator'
      - '@language_manager'
      - '@entity_type.manager'
      - '@simple_sitemap.logger'
      - '@simple_sitemap.entity_helper'
79
      - '@module_handler'
80

Pawel G's avatar
Pawel G committed
81 82
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
83
    public: true
Pawel G's avatar
Pawel G committed
84
    arguments:
85 86
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
87 88 89

  logger.channel.simple_sitemap:
    parent: logger.channel_base
90
    public: false
Pawel G's avatar
Pawel G committed
91 92
    arguments:
      - simple_sitemap