This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathomnipedia_commerce.services.yml
86 lines (74 loc) · 3.37 KB
/
omnipedia_commerce.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
# Our logger channel.
logger.channel.omnipedia_commerce:
class: Drupal\Core\Logger\LoggerChannel
factory: logger.factory:get
arguments: ['omnipedia_commerce']
# The Omnipedia Commerce Cart Redirection helper service.
omnipedia_commerce.commerce_cart_redirection:
class: Drupal\omnipedia_commerce\Service\CommerceCartRedirection
arguments:
- '@omnipedia_commerce.commerce_order'
- '@config.factory'
# The Omnipedia Commerce order helper service.
omnipedia_commerce.commerce_order:
class: Drupal\omnipedia_commerce\Service\CommerceOrder
# The Omnipedia content access product service.
omnipedia_commerce.content_access_product:
class: Drupal\omnipedia_commerce\Service\ContentAccessProduct
arguments:
- '@config.factory'
- '@entity_type.manager'
- '@omnipedia.wiki_node_main_page'
# The Omnipedia user episode tiers service.
omnipedia_commerce.user_episode_tiers:
class: Drupal\omnipedia_commerce\Service\UserEpisodeTiers
arguments:
- '@logger.channel.omnipedia_commerce'
- '@omnipedia_access.permissions_by_term'
# Event subscriber to grant a user episode tiers on Commerce order paid.
omnipedia_commerce.commerce_episode_tier_permission_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Commerce\EpisodeTierPermissionEventSubscriber
arguments:
- '@logger.channel.omnipedia_commerce'
- '@omnipedia_commerce.commerce_order'
- '@omnipedia_commerce.user_episode_tiers'
tags:
- { name: 'event_subscriber' }
# Event subscriber to correct Commerce order payment issues.
omnipedia_commerce.commerce_order_payment_corrector_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Commerce\OrderPaymentCorrectorEventSubscriber
arguments:
- '@commerce_payment.order_updater'
- '@entity_type.manager'
- '@logger.channel.omnipedia_commerce'
- '@session'
tags:
- { name: 'event_subscriber' }
# Event subscriber to alter the Commerce add to cart form.
omnipedia_commerce.form_commerce_add_to_cart_alter_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Form\CommerceAddToCartFormAlterEventSubscriber
arguments:
- '@commerce_cart.cart_provider'
- '@omnipedia_commerce.commerce_cart_redirection'
tags:
- { name: 'event_subscriber' }
# Event subscriber to alter Commerce checkout flow PayPal buttons location.
omnipedia_commerce.base_form_commerce_checkout_flow_paypal_alter_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Form\CommerceCheckoutFlowPayPalBaseFormAlterEventSubscriber
tags:
- { name: 'event_subscriber' }
# Event subscriber to alter Commerce payment options, adding Stripe links.
omnipedia_commerce.base_form_commerce_checkout_flow_stripe_alter_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Form\CommerceCheckoutFlowStripeBaseFormAlterEventSubscriber
arguments:
- '@string_translation'
tags:
- { name: 'event_subscriber' }
# Event subscriber to remove the Commerce added to cart message.
omnipedia_commerce.kernel_commerce_cart_added_message_removal_event_subscriber:
class: Drupal\omnipedia_commerce\EventSubscriber\Kernel\CommerceCartAddedMessageRemovalEventSubscriber
arguments:
- '@commerce_cart.cart_subscriber'
tags:
- { name: 'event_subscriber' }