Commit e7e76661 authored by alexpott's avatar alexpott

Issue #2306071 by dawehner: Tag backend services.

parent 7efafc25
......@@ -105,6 +105,8 @@ services:
class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', 'config']
public: false
tags:
- { name: backend_overridable }
config.storage.file:
class: Drupal\Core\Config\FileStorage
factory_class: Drupal\Core\Config\FileStorageFactory
......@@ -117,6 +119,8 @@ services:
config.storage.snapshot:
class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', config_snapshot]
tags:
- { name: backend_overridable }
config.storage.schema:
class: Drupal\Core\Config\ExtensionInstallStorage
arguments: ['@config.storage', 'config/schema']
......@@ -311,6 +315,8 @@ services:
class: Drupal\Core\Menu\MenuTreeStorage
arguments: ['@database', '@cache.menu', 'menu_tree']
public: false # Private to plugin.manager.menu.link and menu.link_tree
tags:
- { name: backend_overridable }
menu_link.static.overrides:
class: Drupal\Core\Menu\StaticMenuLinkOverrides
arguments: ['@config.factory']
......@@ -373,6 +379,8 @@ services:
lock:
class: Drupal\Core\Lock\DatabaseLockBackend
arguments: ['@database']
tags:
- { name: backend_overridable }
router.request_context:
class: Symfony\Component\Routing\RequestContext
tags:
......@@ -385,6 +393,7 @@ services:
arguments: ['@database', '@router.builder', '@state']
tags:
- { name: event_subscriber }
- { name: backend_overridable }
router.route_preloader:
class: Drupal\Core\Routing\RoutePreloader
arguments: ['@router.route_provider', '@state', '@content_negotiation']
......@@ -433,12 +442,16 @@ services:
entity.query.sql:
class: Drupal\Core\Entity\Query\Sql\QueryFactory
arguments: ['@database']
tags:
- { name: backend_overridable }
entity.query.keyvalue:
class: Drupal\Core\Entity\KeyValueStore\Query\QueryFactory
arguments: ['@keyvalue']
router.dumper:
class: Drupal\Core\Routing\MatcherDumper
arguments: ['@database', '@state']
tags:
- { name: backend_overridable }
router.builder:
class: Drupal\Core\Routing\RouteBuilder
arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler', '@controller_resolver', '@state']
......@@ -455,6 +468,8 @@ services:
path.alias_storage:
class: Drupal\Core\Path\AliasStorage
arguments: ['@database', '@module_handler']
tags:
- { name: backend_overridable }
path.matcher:
class: Drupal\Core\Path\PathMatcher
arguments: ['@config.factory']
......@@ -724,6 +739,8 @@ services:
flood:
class: Drupal\Core\Flood\DatabaseBackend
arguments: ['@database', '@request_stack']
tags:
- { name: backend_overridable }
plugin.manager.mail:
class: Drupal\Core\Mail\MailManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@config.factory']
......@@ -761,6 +778,8 @@ services:
batch.storage:
class: Drupal\Core\Batch\BatchStorage
arguments: ['@database']
tags:
- { name: backend_overridable }
replica_database_ignore__subscriber:
class: Drupal\Core\EventSubscriber\ReplicaDatabaseIgnoreSubscriber
tags:
......@@ -843,6 +862,8 @@ services:
session_manager:
class: Drupal\Core\Session\SessionManager
arguments: ['@request_stack', '@database', '@session_manager.metadata_bag', '@settings']
tags:
- { name: backend_overridable }
session_manager.metadata_bag:
class: Drupal\Core\Session\MetadataBag
arguments: ['@settings']
......
......@@ -2,6 +2,8 @@ services:
ban.ip_manager:
class: Drupal\ban\BanIpManager
arguments: ['@database']
tags:
- { name: backend_overridable }
ban.subscriber:
class: Drupal\ban\EventSubscriber\BanSubscriber
tags:
......
......@@ -7,6 +7,8 @@ services:
book.manager:
class: Drupal\book\BookManager
arguments: ['@database', '@entity.manager', '@string_translation', '@config.factory']
tags:
- { name: backend_overridable }
book.outline:
class: Drupal\book\BookOutline
arguments: ['@book.manager']
......
......@@ -12,6 +12,8 @@ services:
comment.statistics:
class: Drupal\comment\CommentStatistics
arguments: ['@database', '@current_user', '@entity.manager', '@state']
tags:
- { name: backend_overridable }
comment.post_render_cache:
class: Drupal\comment\CommentPostRenderCache
......
......@@ -4,3 +4,4 @@ services:
arguments: ['@database', '@logger.log_message_parser']
tags:
- { name: logger }
- { name: backend_overridable }
......@@ -2,3 +2,5 @@ services:
file.usage:
class: Drupal\file\FileUsage\DatabaseFileUsageBackend
arguments: ['@database']
tags:
- { name: backend_overridable }
......@@ -2,6 +2,8 @@ services:
forum_manager:
class: Drupal\forum\ForumManager
arguments: ['@config.factory', '@entity.manager', '@database', '@string_translation', '@comment.manager']
tags:
- { name: backend_overridable }
forum.breadcrumb.node:
class: Drupal\forum\Breadcrumb\ForumNodeBreadcrumbBuilder
arguments: ['@entity.manager', '@config.factory', '@forum_manager']
......@@ -15,3 +17,5 @@ services:
forum.index_storage:
class: Drupal\forum\ForumIndexStorage
arguments: ['@database', '@forum_manager']
tags:
- { name: backend_overridable }
......@@ -5,6 +5,8 @@ services:
locale.storage:
class: Drupal\locale\StringDatabaseStorage
arguments: ['@database']
tags:
- { name: backend_overridable }
string_translator.locale.lookup:
class: Drupal\locale\LocaleTranslation
arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager']
......
......@@ -6,11 +6,14 @@ services:
node.grant_storage:
class: Drupal\node\NodeGrantDatabaseStorage
arguments: ['@database', '@module_handler']
tags:
- { name: backend_overridable }
access_check.node.revision:
class: Drupal\node\Access\NodeRevisionAccessCheck
arguments: ['@entity.manager', '@database']
tags:
- { name: access_check, applies_to: _access_node_revision }
- { name: backend_overridable }
access_check.node.add:
class: Drupal\node\Access\NodeAddAccessCheck
arguments: ['@entity.manager']
......
......@@ -6,6 +6,8 @@ services:
system.manager:
class: Drupal\system\SystemManager
arguments: ['@module_handler', '@database', '@entity.manager', '@request_stack', '@menu.link_tree', '@menu.active_trail']
tags:
- { name: backend_overridable }
system.breadcrumb.default:
class: Drupal\system\PathBasedBreadcrumbBuilder
arguments: ['@router.request_context', '@access_manager', '@router', '@path_processor_manager', '@config.factory', '@title_resolver', '@current_user']
......
......@@ -33,6 +33,8 @@ services:
user.data:
class: Drupal\user\UserData
arguments: ['@database']
tags:
- { name: backend_overridable }
user.autocomplete:
class: Drupal\user\UserAutocomplete
arguments: ['@config.factory', '@entity.manager', '@entity.query']
......@@ -55,6 +57,8 @@ services:
user.tempstore:
class: Drupal\user\TempStoreFactory
arguments: ['@serialization.phpserialize', '@database', '@lock', '%user.tempstore.expire%']
tags:
- { name: backend_overridable }
parameters:
user.tempstore.expire: 604800
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment