You are here

commerce_product.services.yml in Commerce Core 8.2

modules/product/commerce_product.services.yml

File

modules/product/commerce_product.services.yml
View source
  1. services:
  2. access_check.product_variation_collection:
  3. class: Drupal\commerce_product\Access\ProductVariationCollectionAccessCheck
  4. arguments: ['@entity_type.manager']
  5. tags:
  6. - { name: access_check, applies_to: _product_variation_collection_access }
  7. access_check.product_variation_create:
  8. class: Drupal\commerce_product\Access\ProductVariationCreateAccessCheck
  9. arguments: ['@entity_type.manager']
  10. tags:
  11. - { name: access_check, applies_to: _product_variation_create_access }
  12. commerce_product.attribute_field_manager:
  13. class: Drupal\commerce_product\ProductAttributeFieldManager
  14. arguments: ['@entity_field.manager', '@entity_type.bundle.info', '@entity_type.manager', '@cache.data']
  15. commerce_product.lazy_builders:
  16. class: Drupal\commerce_product\ProductLazyBuilders
  17. arguments: ['@entity_type.manager', '@form_builder', '@entity.repository']
  18. commerce_product.variation_field_renderer:
  19. class: Drupal\commerce_product\ProductVariationFieldRenderer
  20. arguments: ['@entity_type.manager']
  21. commerce_product.product_route_context:
  22. class: Drupal\commerce_product\ContextProvider\ProductRouteContext
  23. arguments: ['@current_route_match', '@entity_type.manager']
  24. tags:
  25. - { name: 'context_provider' }
  26. commerce_product.product_variation_route_context:
  27. class: Drupal\commerce_product\ContextProvider\ProductVariationContext
  28. arguments: ['@current_route_match', '@entity_type.manager']
  29. calls:
  30. - [ setSampleEntityGenerator, [ '@?layout_builder.sample_entity_generator' ] ]
  31. tags:
  32. - { name: 'context_provider' }
  33. commerce_product.variation_attribute_mapper:
  34. class: Drupal\commerce_product\ProductVariationAttributeMapper
  35. arguments: ['@commerce_product.attribute_field_manager', '@entity_type.manager', '@entity.repository']