features.services.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. services:
  2. plugin.manager.features_assignment_method:
  3. class: Drupal\features\FeaturesAssignmentMethodManager
  4. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  5. plugin.manager.features_generation_method:
  6. class: Drupal\features\FeaturesGenerationMethodManager
  7. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  8. features_assigner:
  9. class: Drupal\features\FeaturesAssigner
  10. arguments: ['@features.manager', '@plugin.manager.features_assignment_method', '@entity.manager', '@config.factory', '@config.storage']
  11. calls:
  12. - [initFeaturesManager]
  13. features_generator:
  14. class: Drupal\features\FeaturesGenerator
  15. arguments: ['@features.manager', '@plugin.manager.features_generation_method', '@features_assigner']
  16. calls:
  17. - [initFeaturesManager]
  18. features.manager:
  19. class: Drupal\features\FeaturesManager
  20. arguments: ['@app.root', '@entity.manager', '@config.factory', '@config.storage', '@config.manager', '@module_handler', '@features.config_update']
  21. features.config_update:
  22. class: Drupal\config_update\ConfigReverter
  23. arguments: ['@entity.manager', '@config.storage', '@features.extension_storage', '@features.extension_optional_storage', '@config.factory', '@event_dispatcher']
  24. features.extension_storage:
  25. class: Drupal\features\FeaturesInstallStorage
  26. arguments: ['@config.storage']
  27. features.extension_optional_storage:
  28. class: Drupal\features\FeaturesInstallStorage
  29. arguments: ['@config.storage', 'config/optional']
  30. features.config.installer:
  31. class: Drupal\features\FeaturesConfigInstaller
  32. decorates: config.installer
  33. decoration_priority: 9
  34. arguments: ['@features.config.installer.inner', '@features.manager', '@config.factory', '@config.storage', '@config.typed', '@config.manager', '@event_dispatcher']