Issue #2306071 by dawehner: Tag backend services.

8.0.x
Alex Pott 2014-08-04 12:54:30 +01:00
parent 7efafc259d
commit e7e766618c
11 changed files with 45 additions and 0 deletions

View File

@ -105,6 +105,8 @@ services:
class: Drupal\Core\Config\DatabaseStorage class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', 'config'] arguments: ['@database', 'config']
public: false public: false
tags:
- { name: backend_overridable }
config.storage.file: config.storage.file:
class: Drupal\Core\Config\FileStorage class: Drupal\Core\Config\FileStorage
factory_class: Drupal\Core\Config\FileStorageFactory factory_class: Drupal\Core\Config\FileStorageFactory
@ -117,6 +119,8 @@ services:
config.storage.snapshot: config.storage.snapshot:
class: Drupal\Core\Config\DatabaseStorage class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', config_snapshot] arguments: ['@database', config_snapshot]
tags:
- { name: backend_overridable }
config.storage.schema: config.storage.schema:
class: Drupal\Core\Config\ExtensionInstallStorage class: Drupal\Core\Config\ExtensionInstallStorage
arguments: ['@config.storage', 'config/schema'] arguments: ['@config.storage', 'config/schema']
@ -311,6 +315,8 @@ services:
class: Drupal\Core\Menu\MenuTreeStorage class: Drupal\Core\Menu\MenuTreeStorage
arguments: ['@database', '@cache.menu', 'menu_tree'] arguments: ['@database', '@cache.menu', 'menu_tree']
public: false # Private to plugin.manager.menu.link and menu.link_tree public: false # Private to plugin.manager.menu.link and menu.link_tree
tags:
- { name: backend_overridable }
menu_link.static.overrides: menu_link.static.overrides:
class: Drupal\Core\Menu\StaticMenuLinkOverrides class: Drupal\Core\Menu\StaticMenuLinkOverrides
arguments: ['@config.factory'] arguments: ['@config.factory']
@ -373,6 +379,8 @@ services:
lock: lock:
class: Drupal\Core\Lock\DatabaseLockBackend class: Drupal\Core\Lock\DatabaseLockBackend
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
router.request_context: router.request_context:
class: Symfony\Component\Routing\RequestContext class: Symfony\Component\Routing\RequestContext
tags: tags:
@ -385,6 +393,7 @@ services:
arguments: ['@database', '@router.builder', '@state'] arguments: ['@database', '@router.builder', '@state']
tags: tags:
- { name: event_subscriber } - { name: event_subscriber }
- { name: backend_overridable }
router.route_preloader: router.route_preloader:
class: Drupal\Core\Routing\RoutePreloader class: Drupal\Core\Routing\RoutePreloader
arguments: ['@router.route_provider', '@state', '@content_negotiation'] arguments: ['@router.route_provider', '@state', '@content_negotiation']
@ -433,12 +442,16 @@ services:
entity.query.sql: entity.query.sql:
class: Drupal\Core\Entity\Query\Sql\QueryFactory class: Drupal\Core\Entity\Query\Sql\QueryFactory
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
entity.query.keyvalue: entity.query.keyvalue:
class: Drupal\Core\Entity\KeyValueStore\Query\QueryFactory class: Drupal\Core\Entity\KeyValueStore\Query\QueryFactory
arguments: ['@keyvalue'] arguments: ['@keyvalue']
router.dumper: router.dumper:
class: Drupal\Core\Routing\MatcherDumper class: Drupal\Core\Routing\MatcherDumper
arguments: ['@database', '@state'] arguments: ['@database', '@state']
tags:
- { name: backend_overridable }
router.builder: router.builder:
class: Drupal\Core\Routing\RouteBuilder class: Drupal\Core\Routing\RouteBuilder
arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler', '@controller_resolver', '@state'] arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler', '@controller_resolver', '@state']
@ -455,6 +468,8 @@ services:
path.alias_storage: path.alias_storage:
class: Drupal\Core\Path\AliasStorage class: Drupal\Core\Path\AliasStorage
arguments: ['@database', '@module_handler'] arguments: ['@database', '@module_handler']
tags:
- { name: backend_overridable }
path.matcher: path.matcher:
class: Drupal\Core\Path\PathMatcher class: Drupal\Core\Path\PathMatcher
arguments: ['@config.factory'] arguments: ['@config.factory']
@ -724,6 +739,8 @@ services:
flood: flood:
class: Drupal\Core\Flood\DatabaseBackend class: Drupal\Core\Flood\DatabaseBackend
arguments: ['@database', '@request_stack'] arguments: ['@database', '@request_stack']
tags:
- { name: backend_overridable }
plugin.manager.mail: plugin.manager.mail:
class: Drupal\Core\Mail\MailManager class: Drupal\Core\Mail\MailManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@config.factory'] arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@config.factory']
@ -761,6 +778,8 @@ services:
batch.storage: batch.storage:
class: Drupal\Core\Batch\BatchStorage class: Drupal\Core\Batch\BatchStorage
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
replica_database_ignore__subscriber: replica_database_ignore__subscriber:
class: Drupal\Core\EventSubscriber\ReplicaDatabaseIgnoreSubscriber class: Drupal\Core\EventSubscriber\ReplicaDatabaseIgnoreSubscriber
tags: tags:
@ -843,6 +862,8 @@ services:
session_manager: session_manager:
class: Drupal\Core\Session\SessionManager class: Drupal\Core\Session\SessionManager
arguments: ['@request_stack', '@database', '@session_manager.metadata_bag', '@settings'] arguments: ['@request_stack', '@database', '@session_manager.metadata_bag', '@settings']
tags:
- { name: backend_overridable }
session_manager.metadata_bag: session_manager.metadata_bag:
class: Drupal\Core\Session\MetadataBag class: Drupal\Core\Session\MetadataBag
arguments: ['@settings'] arguments: ['@settings']

View File

@ -2,6 +2,8 @@ services:
ban.ip_manager: ban.ip_manager:
class: Drupal\ban\BanIpManager class: Drupal\ban\BanIpManager
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
ban.subscriber: ban.subscriber:
class: Drupal\ban\EventSubscriber\BanSubscriber class: Drupal\ban\EventSubscriber\BanSubscriber
tags: tags:

View File

@ -7,6 +7,8 @@ services:
book.manager: book.manager:
class: Drupal\book\BookManager class: Drupal\book\BookManager
arguments: ['@database', '@entity.manager', '@string_translation', '@config.factory'] arguments: ['@database', '@entity.manager', '@string_translation', '@config.factory']
tags:
- { name: backend_overridable }
book.outline: book.outline:
class: Drupal\book\BookOutline class: Drupal\book\BookOutline
arguments: ['@book.manager'] arguments: ['@book.manager']

View File

@ -12,6 +12,8 @@ services:
comment.statistics: comment.statistics:
class: Drupal\comment\CommentStatistics class: Drupal\comment\CommentStatistics
arguments: ['@database', '@current_user', '@entity.manager', '@state'] arguments: ['@database', '@current_user', '@entity.manager', '@state']
tags:
- { name: backend_overridable }
comment.post_render_cache: comment.post_render_cache:
class: Drupal\comment\CommentPostRenderCache class: Drupal\comment\CommentPostRenderCache

View File

@ -4,3 +4,4 @@ services:
arguments: ['@database', '@logger.log_message_parser'] arguments: ['@database', '@logger.log_message_parser']
tags: tags:
- { name: logger } - { name: logger }
- { name: backend_overridable }

View File

@ -2,3 +2,5 @@ services:
file.usage: file.usage:
class: Drupal\file\FileUsage\DatabaseFileUsageBackend class: Drupal\file\FileUsage\DatabaseFileUsageBackend
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }

View File

@ -2,6 +2,8 @@ services:
forum_manager: forum_manager:
class: Drupal\forum\ForumManager class: Drupal\forum\ForumManager
arguments: ['@config.factory', '@entity.manager', '@database', '@string_translation', '@comment.manager'] arguments: ['@config.factory', '@entity.manager', '@database', '@string_translation', '@comment.manager']
tags:
- { name: backend_overridable }
forum.breadcrumb.node: forum.breadcrumb.node:
class: Drupal\forum\Breadcrumb\ForumNodeBreadcrumbBuilder class: Drupal\forum\Breadcrumb\ForumNodeBreadcrumbBuilder
arguments: ['@entity.manager', '@config.factory', '@forum_manager'] arguments: ['@entity.manager', '@config.factory', '@forum_manager']
@ -15,3 +17,5 @@ services:
forum.index_storage: forum.index_storage:
class: Drupal\forum\ForumIndexStorage class: Drupal\forum\ForumIndexStorage
arguments: ['@database', '@forum_manager'] arguments: ['@database', '@forum_manager']
tags:
- { name: backend_overridable }

View File

@ -5,6 +5,8 @@ services:
locale.storage: locale.storage:
class: Drupal\locale\StringDatabaseStorage class: Drupal\locale\StringDatabaseStorage
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
string_translator.locale.lookup: string_translator.locale.lookup:
class: Drupal\locale\LocaleTranslation class: Drupal\locale\LocaleTranslation
arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager'] arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager']

View File

@ -6,11 +6,14 @@ services:
node.grant_storage: node.grant_storage:
class: Drupal\node\NodeGrantDatabaseStorage class: Drupal\node\NodeGrantDatabaseStorage
arguments: ['@database', '@module_handler'] arguments: ['@database', '@module_handler']
tags:
- { name: backend_overridable }
access_check.node.revision: access_check.node.revision:
class: Drupal\node\Access\NodeRevisionAccessCheck class: Drupal\node\Access\NodeRevisionAccessCheck
arguments: ['@entity.manager', '@database'] arguments: ['@entity.manager', '@database']
tags: tags:
- { name: access_check, applies_to: _access_node_revision } - { name: access_check, applies_to: _access_node_revision }
- { name: backend_overridable }
access_check.node.add: access_check.node.add:
class: Drupal\node\Access\NodeAddAccessCheck class: Drupal\node\Access\NodeAddAccessCheck
arguments: ['@entity.manager'] arguments: ['@entity.manager']

View File

@ -6,6 +6,8 @@ services:
system.manager: system.manager:
class: Drupal\system\SystemManager class: Drupal\system\SystemManager
arguments: ['@module_handler', '@database', '@entity.manager', '@request_stack', '@menu.link_tree', '@menu.active_trail'] arguments: ['@module_handler', '@database', '@entity.manager', '@request_stack', '@menu.link_tree', '@menu.active_trail']
tags:
- { name: backend_overridable }
system.breadcrumb.default: system.breadcrumb.default:
class: Drupal\system\PathBasedBreadcrumbBuilder class: Drupal\system\PathBasedBreadcrumbBuilder
arguments: ['@router.request_context', '@access_manager', '@router', '@path_processor_manager', '@config.factory', '@title_resolver', '@current_user'] arguments: ['@router.request_context', '@access_manager', '@router', '@path_processor_manager', '@config.factory', '@title_resolver', '@current_user']

View File

@ -33,6 +33,8 @@ services:
user.data: user.data:
class: Drupal\user\UserData class: Drupal\user\UserData
arguments: ['@database'] arguments: ['@database']
tags:
- { name: backend_overridable }
user.autocomplete: user.autocomplete:
class: Drupal\user\UserAutocomplete class: Drupal\user\UserAutocomplete
arguments: ['@config.factory', '@entity.manager', '@entity.query'] arguments: ['@config.factory', '@entity.manager', '@entity.query']
@ -55,6 +57,8 @@ services:
user.tempstore: user.tempstore:
class: Drupal\user\TempStoreFactory class: Drupal\user\TempStoreFactory
arguments: ['@serialization.phpserialize', '@database', '@lock', '%user.tempstore.expire%'] arguments: ['@serialization.phpserialize', '@database', '@lock', '%user.tempstore.expire%']
tags:
- { name: backend_overridable }
parameters: parameters:
user.tempstore.expire: 604800 user.tempstore.expire: 604800