simple_sitemap.services.yml 1.29 KB
Newer Older
gbyte.co's avatar
gbyte.co committed
1
services:
2 3
  simple_sitemap.generator:
    class: Drupal\simple_sitemap\Simplesitemap
4 5 6 7 8 9 10 11
    public: true
    arguments:
      - @simple_sitemap.sitemap_generator
      - @config.factory
      - @database
      - @entity_type.manager
      - @path.validator
      - @date.formatter
12 13 14

  simple_sitemap.sitemap_generator:
    class: Drupal\simple_sitemap\SitemapGenerator
15 16 17 18 19 20
    public: false
    arguments:
      - @simple_sitemap.batch
      - @database
      - @module_handler
      - @language_manager
21

22 23
  simple_sitemap.form_helper:
    class: Drupal\simple_sitemap\Form\FormHelper
24 25 26 27
    public: true
    arguments:
      - @simple_sitemap.generator
      - @current_user
28

29 30
  simple_sitemap.batch:
    class: Drupal\simple_sitemap\Batch\Batch
31
    public: false
32

33 34
  simple_sitemap.batch_url_generator:
    class: Drupal\simple_sitemap\Batch\BatchUrlGenerator
35 36 37 38 39 40 41
    public: true
    arguments:
      - @simple_sitemap.sitemap_generator
      - @language_manager
      - @entity_type.manager
      - @path.validator
      - @entity.query
42 43 44 45 46 47 48 49 50 51 52 53 54
      - @simple_sitemap.logger

  simple_sitemap.logger:
    class: Drupal\simple_sitemap\Logger
    prublic: false
    arguments:
      - @logger.channel.simple_sitemap
      - @current_user

  logger.channel.simple_sitemap:
    parent: logger.channel_base
    arguments:
      - simple_sitemap