foldershare-8.x-1.2/foldershare.services.yml

foldershare.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Define services provided by the module.
#
services:
 
#
# Breadcrumbs builder.
# --------------------
# The breadcrumb builder responds on module entity view pages, edit pages,
# and command forms, to build a breadcrumb based on the root-to-entity
# folder path.
#
  foldershare.breadcrumb:
    class: Drupal\foldershare\Entity\Builder\FolderShareBreadcrumbBuilder
    arguments: ['@entity.manager', '@router.route_provider', '@access_manager', '@current_user', '@title_resolver']
    tags:
      - { name: breadcrumb_builder, priority: 100000 }
 
#
# FolderShare commands.
# ---------------------
# Commands are similar to Drupal actions, but they include multiple standard
# arguments (e.g. parent, selection) and detailed context information
# (e.g. 'upload' only works when viewing a folder). Command execution requires
# forwarding a command choice and parameters from the UI to code managed by the
# command plugin manager.
#
  foldershare.plugin.manager.foldersharecommand:
    class: Drupal\foldershare\Plugin\FolderShareCommandManager
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
 
 
#
# Scheduled tasks.
# ----------------
# Scheduled tasks handle background activity for the module, including
# completing long-running or delated delete, copy, move, etc. Since CRON
# cannot be counted on to run frequently (it is often set to run only every
# hour), scheduled tasks are serviced after every page is returned to a user.
# This is similar to Drupal core's AutomatedCron, but without its limitation
# to a very coarse execution interval.
  foldershare.scheduledtask.subscriber:
    class: Drupal\foldershare\EventSubscriber\FolderShareScheduledTaskHandler
    arguments: []
    tags:
      - { name: event_subscriber }
 
 
#
# Better HTTP exception logger.
# -----------------------------
# HTTP exceptions are automatically logged by Drupal core using a series of
# exception subscribers. But for some HTTP exceptions, the default subscribers
# output terse messages the omit the exception's own explanatory message.
# Instead, the module's subscriber overrides Drupal core and logs better
# messages for FolderShare-generated HTTP exceptions.
  foldershare.httpexception.subscriber:
    class: Drupal\foldershare\EventSubscriber\FolderShareHttpExceptionSubscriber
    arguments: ['@http_kernel', '@logger.channel.php', '@redirect.destination', '@router.no_access_checks', '@logger.factory']
    tags:
      - { name: event_subscriber }

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc