Skip to content

Commit bb5619d

Browse files
authored
Merge pull request #318 from Wojdylak/SYL-4154-pay-pal-plugin-1.7-services-fix
[Maintenance] Add new id for PaymentMethodTypeExtension
2 parents 4357b29 + 1f815c9 commit bb5619d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
| `Sylius\PayPalPlugin\EventListener\Workflow\CompletePayPalOrderListener` | `sylius_paypal.listener.workflow.complete_paypal_order` |
4545
| `Sylius\PayPalPlugin\EventListener\Workflow\RefundPaymentListener` | `sylius_paypal.listener.workflow.refund_payment` |
4646
| `Sylius\PayPalPlugin\Factory\PayPalPaymentMethodNewResourceFactory` | `sylius_paypal.factory.paypal_payment_method_new_resource` |
47+
| `Sylius\PayPalPlugin\Form\Extension\PaymentMethodTypeExtension` | `sylius_paypal.form.extension.payment_method` |
4748
| `Sylius\PayPalPlugin\Form\Type\PayPalConfigurationType` | `sylius_paypal.form.type.paypal_configuration` |
4849
| `Sylius\PayPalPlugin\Listener\PayPalPaymentMethodListener` | `sylius_paypal.listener.paypal_payment_method` |
4950
| `Sylius\PayPalPlugin\Payum\Action\AuthorizeAction` | `sylius_paypal.payum.action.authorize` |

src/Console/Command/CompletePaidPaymentsCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ public function __construct(
5252
),
5353
);
5454
}
55+
56+
trigger_deprecation(
57+
'sylius/paypal-plugin',
58+
'1.7',
59+
'The fifth argument of the constructor in class "%s" is deprecated and will be renamed to "stateMachine" in 2.0.',
60+
self::class,
61+
);
5562
}
5663

5764
protected function configure(): void

src/Resources/config/services.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<service id="Sylius\PayPalPlugin\Form\Extension\PaymentMethodTypeExtension">
3030
<tag name="form.type_extension" extended-type="Sylius\Bundle\PaymentBundle\Form\Type\PaymentMethodType" />
3131
</service>
32+
<service id="sylius_paypal.form.extension.payment_method" alias="Sylius\PayPalPlugin\Form\Extension\PaymentMethodTypeExtension" />
3233

3334
<service id="Sylius\PayPalPlugin\Form\Type\PayPalConfigurationType">
3435
<tag name="sylius.gateway_configuration_type" type="sylius.pay_pal" label="sylius.pay_pal.label" />

0 commit comments

Comments
 (0)