simple_sitemap.services.yml 1.71 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
      - '@simple_sitemap.batch'
15
      - '@plugin.manager.simple_sitemap.url_generator'
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
      - '@simple_sitemap.sitemap_writer'

  simple_sitemap.sitemap_writer:
    class: Drupal\simple_sitemap\SitemapWriter
    public: false
31

32 33 34 35 36
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
37
      - '@database'
38

39 40
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
41 42
    public: true
    arguments:
43
      - '@simple_sitemap.generator'
44
      - '@simple_sitemap.entity_helper'
45
      - '@current_user'
46

47
  simple_sitemap.batch:
48
    class: Drupal\simple_sitemap\Batch
49
    public: false
50

Pawel G's avatar
Pawel G committed
51 52
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
Pawel G's avatar
Pawel G committed
53
    public: true
Pawel G's avatar
Pawel G committed
54
    arguments:
55 56
      - '@logger.channel.simple_sitemap'
      - '@current_user'
Pawel G's avatar
Pawel G committed
57 58 59

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

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager