simple_sitemap.services.yml 3.01 KB
Newer Older
gbyte.co's avatar
gbyte.co committed
1
services:
2 3
  simple_sitemap.generator:
    class: Drupal\simple_sitemap\Simplesitemap
4 5
    public: true
    arguments:
6
      - '@simple_sitemap.entity_helper'
7 8
      - '@simple_sitemap.settings'
      - '@simple_sitemap.manager'
9 10 11 12 13
      - '@config.factory'
      - '@database'
      - '@entity_type.manager'
      - '@path.validator'
      - '@date.formatter'
14
      - '@datetime.time'
15 16 17 18
      - '@simple_sitemap.queue_worker'

  simple_sitemap.manager:
    class: Drupal\simple_sitemap\SimplesitemapManager
19
    public: true
20 21
    arguments:
    - '@config.factory'
22
    - '@database'
23 24 25
    - '@plugin.manager.simple_sitemap.sitemap_type'
    - '@plugin.manager.simple_sitemap.url_generator'
    - '@plugin.manager.simple_sitemap.sitemap_generator'
gbyte.co's avatar
gbyte.co committed
26
    - '@simple_sitemap.settings'
27 28 29

  simple_sitemap.settings:
    class: Drupal\simple_sitemap\SimplesitemapSettings
gbyte.co's avatar
gbyte.co committed
30
    public: false
31 32 33 34 35 36 37 38 39 40
    arguments:
    - '@config.factory'

  simple_sitemap.queue_worker:
    class: Drupal\simple_sitemap\Queue\QueueWorker
    public: true
    arguments:
    - '@simple_sitemap.settings'
    - '@simple_sitemap.manager'
    - '@state'
gbyte.co's avatar
gbyte.co committed
41
    - '@simple_sitemap.queue'
42
    - '@simple_sitemap.logger'
43

gbyte.co's avatar
gbyte.co committed
44 45
  simple_sitemap.queue:
    class: Drupal\simple_sitemap\Queue\SimplesitemapQueue
46 47 48 49
    public: false
    arguments:
    - 'simple_sitemap_elements'
    - '@database'
50 51

  simple_sitemap.sitemap_writer:
52 53
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapWriter
    public: true
54

55 56 57 58 59
  simple_sitemap.entity_helper:
    class: Drupal\simple_sitemap\EntityHelper
    public: true
    arguments:
      - '@entity_type.manager'
60
      - '@database'
61
      - '@entity_type.bundle.info'
62

63 64
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
65 66
    public: true
    arguments:
67
      - '@simple_sitemap.generator'
68
      - '@simple_sitemap.entity_helper'
69
      - '@current_user'
70

71 72
  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
73
    public: true
74
    arguments:
75
      - '@logger.channel.simple_sitemap'
76
      - '@messenger'
77
      - '@current_user'
78

79 80
  simple_sitemap.path_processor.variant.in:
    class: Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariantIn
81 82 83
    tags:
      - { name: path_processor_inbound, priority: 300 }

84 85 86 87 88
  simple_sitemap.path_processor.variant.out:
    class: Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariantOut
    tags:
      - { name: path_processor_outbound, priority: 300 }

89 90
  logger.channel.simple_sitemap:
    parent: logger.channel_base
91
    public: false
92 93
    arguments:
      - simple_sitemap
94 95 96 97

  plugin.manager.simple_sitemap.url_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
    parent: default_plugin_manager
98 99 100 101

  plugin.manager.simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorManager
    parent: default_plugin_manager
102 103 104 105

  plugin.manager.simple_sitemap.sitemap_type:
    class: Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapType\SitemapTypeManager
    parent: default_plugin_manager