Skip to content

Commit

Permalink
PAYOSWXP-158: Add keys to service arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
momocode-de committed Nov 2, 2024
1 parent b70dc4e commit c6a7387
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/DependencyInjection/listeners.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</service>

<service id="PayonePayment\EventListener\StorefrontRenderEventListener">
<argument type="service" id="PayonePayment\Components\Helper\ActivePaymentMethodsLoaderInterface"/>
<argument key="$activePaymentMethodsLoader" type="service" id="PayonePayment\Components\Helper\ActivePaymentMethodsLoaderInterface"/>

<tag name="kernel.event_subscriber"/>
</service>
Expand Down Expand Up @@ -75,10 +75,10 @@
</service>

<service id="PayonePayment\EventListener\PayPalV2ExpressEventListener">
<argument type="service" id="PayonePayment\Components\Helper\ActivePaymentMethodsLoaderInterface"/>
<argument type="service" id="PayonePayment\Components\ConfigReader\ConfigReaderInterface"/>
<argument type="service" id="router"/>
<argument type="service" id="monolog.logger.payone" />
<argument key="$activePaymentMethodsLoader" type="service" id="PayonePayment\Components\Helper\ActivePaymentMethodsLoaderInterface"/>
<argument key="$configReader" type="service" id="PayonePayment\Components\ConfigReader\ConfigReaderInterface"/>
<argument key="$router" type="service" id="router"/>
<argument key="$logger" type="service" id="monolog.logger.payone" />
<tag name="kernel.event_subscriber"/>
</service>

Expand Down
6 changes: 3 additions & 3 deletions src/DependencyInjection/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
<service id="PayonePayment\Components\Currency\CurrencyPrecisionInterface" alias="PayonePayment\Components\Currency\CurrencyPrecision"/>

<service id="PayonePayment\Components\Helper\ActivePaymentMethodsLoader">
<argument type="service" id="cache.object"/>
<argument type="service" id="sales_channel.payment_method.repository"/>
<argument type="service" id="sales_channel.repository" />
<argument key="$cachePool" type="service" id="cache.object"/>
<argument key="$paymentMethodRepository" type="service" id="sales_channel.payment_method.repository"/>
<argument key="$salesChannelRepository" type="service" id="sales_channel.repository" />
</service>
<service id="PayonePayment\Components\Helper\ActivePaymentMethodsLoaderInterface" alias="PayonePayment\Components\Helper\ActivePaymentMethodsLoader"/>

Expand Down

0 comments on commit c6a7387

Please sign in to comment.