simple_sitemap.services.yml 2.42 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 14 15

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

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

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

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

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

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

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

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