forked from creativepropulsionlabs/commerce_rma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commerce_rma.services.yml
50 lines (40 loc) · 1.66 KB
/
commerce_rma.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
access_check.return_collection:
class: Drupal\commerce_rma\Access\ReturnCollectionAccessCheck
arguments: ['@entity_type.manager']
tags:
- { name: access_check, applies_to: _return_collection_access }
access_check.return_add:
class: Drupal\commerce_rma\Access\ReturnAddAccessCheck
arguments: ['@entity_type.manager']
tags:
- { name: access_check, applies_to: _return_add_access }
access_check.confirm_transition:
class: Drupal\commerce_rma\Access\ConfirmTransitionAccessCheck
arguments: ['@entity_type.manager']
tags:
- { name: access_check, applies_to: _trasition_access }
commerce_rma.route_subscriber:
class: Drupal\commerce_rma\EventSubscriber\RouteSubscriber
tags:
- { name: event_subscriber }
# access_check.commerce_rma.operation:
# class: Drupal\commerce_payment\Access\PaymentOperationAccessCheck
# tags:
# - { name: access_check, applies_to: _commerce_payment_operation_access }
plugin.manager.commerce_refund_gateway:
class: Drupal\commerce_rma\RefundGatewayManager
parent: default_plugin_manager
plugin.manager.commerce_refund_method_type:
class: Drupal\commerce_rma\RefundMethodTypeManager
parent: default_plugin_manager
commerce_rma.return_guard:
class: Drupal\commerce_rma\Guard\CommerceReturnGuard
arguments: ['@current_user', '@plugin.manager.workflow']
tags:
- { name: state_machine.guard, group: commerce_return }
commerce_rma.order_return_subscriber:
class: Drupal\commerce_rma\EventSubscriber\OrderReturnSubscriber
arguments: ['@entity_type.manager', '@plugin.manager.workflow']
tags:
- { name: 'event_subscriber' }