simple_sitemap.services.yml 1.93 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 29
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'

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

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

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

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

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
66
    public: true
Pawel G's avatar
Pawel G committed
67
    arguments:
68 69
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
70 71 72

  logger.channel.simple_sitemap:
    parent: logger.channel_base
73
    public: false
Pawel G's avatar
Pawel G committed
74 75
    arguments:
      - simple_sitemap