Commit 831940a3 authored by webchick's avatar webchick

Issue #2118991 by Berdir, dawehner: Use abstract service definitions to...

Issue #2118991 by Berdir, dawehner: Use abstract service definitions to minimize copy & pasted service definitions.
parent 89274499
......@@ -170,6 +170,9 @@ services:
arguments: [ '%container.namespaces%' ]
tags:
- { name: persist }
default_plugin_manager:
abstract: true
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
entity.manager:
class: Drupal\Core\Entity\EntityManager
arguments: ['@container.namespaces', '@service_container', '@module_handler', '@cache.cache', '@language_manager', '@string_translation']
......@@ -186,7 +189,7 @@ services:
arguments: ['@container.namespaces', '@cache.field', '@module_handler', '@language_manager', '@plugin.manager.field.field_type']
plugin.manager.archiver:
class: Drupal\Core\Archiver\ArchiverManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
plugin.manager.action:
class: Drupal\Core\Action\ActionManager
arguments: ['@container.namespaces']
......@@ -231,12 +234,12 @@ services:
arguments: [slave]
typed_data:
class: Drupal\Core\TypedData\TypedDataManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
calls:
- [setValidationConstraintManager, ['@validation.constraint']]
validation.constraint:
class: Drupal\Core\Validation\ConstraintManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
lock:
class: Drupal\Core\Lock\DatabaseLockBackend
arguments: ['@database']
......@@ -545,7 +548,7 @@ services:
arguments: ['@config.factory']
plugin.manager.condition:
class: Drupal\Core\Condition\ConditionManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
kernel_destruct_subscriber:
class: Drupal\Core\EventSubscriber\KernelDestructionSubscriber
tags:
......
services:
plugin.manager.ckeditor.plugin:
class: Drupal\ckeditor\CKEditorPluginManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
cache.ckeditor.languages:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
......
services:
plugin.manager.editor:
class: Drupal\editor\Plugin\EditorManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
services:
plugin.manager.entity_reference.selection:
class: Drupal\entity_reference\Plugin\Type\SelectionPluginManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
entity_reference.autocomplete:
class: Drupal\entity_reference\EntityReferenceAutocomplete
arguments: ['@entity.manager', '@plugin.manager.entity_reference.selection']
......@@ -12,4 +12,4 @@ services:
- { name: access_check }
plugin.manager.filter:
class: Drupal\filter\FilterPluginManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
......@@ -9,4 +9,4 @@ services:
- { name: path_processor_inbound, priority: 300 }
plugin.manager.image.effect:
class: Drupal\image\ImageEffectManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
services:
plugin.manager.tour.tip:
class: Drupal\tour\TipPluginManager
arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
parent: default_plugin_manager
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