From 907a5d61f15cc0547ac3e18c7ea50f16e20f6b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neven=20Jacmenovi=C4=87?= Date: Tue, 6 Oct 2020 15:52:02 +0200 Subject: [PATCH 1/2] fixed dependency injection --- src/Resources/config/services.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 86039fd..a37fc84 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -1,17 +1,20 @@ services: locastic.sylius_ht_payway_plugin.validator.currency: class: Locastic\SyliusHTPayWayPlugin\Validator\Constraints\CurrencyValidator + public: true tags: - { name: validator.constraint_validator, alias: locastic_sylius_ht_payway_plugin_currency } locastic.sylius_ht_payway_plugin.form.type.ht_payway_gateway_configuration: class: Locastic\SyliusHTPayWayPlugin\Form\Type\HTPayWayOffsiteGatewayConfigurationType + public: true tags: - { name: sylius.gateway_configuration_type, type: ht_payway_offsite, label: locastic.sylius_ht_payway_plugin.ui.ht_payway_offsite } - { name: form.type } locastic.sylius_ht_payway_plugin.offsite_gateway_factory: class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder + public: true arguments: - Locastic\SyliusHTPayWayPlugin\HTPayWayOffsiteGatewayFactory tags: @@ -19,20 +22,24 @@ services: locastic.sylius_ht_payway_plugin.action.convert_payment_to_htpayway: class: Locastic\SyliusHTPayWayPlugin\Bridge\ConvertPaymentToHTPayWayAction + public: true tags: - { name: payum.action, factory: ht_payway_offsite, prepend: true } locastic.sylius_ht_payway_plugin.action.capture_offsite: class: Locastic\SyliusHTPayWayPlugin\Action\CaptureOffsiteAction + public: true tags: - { name: payum.action, factory: ht_payway_offsite, alias: payum.action.capture } locastic.sylius_ht_payway_plugin.action.status: class: Locastic\SyliusHTPayWayPlugin\Action\StatusAction + public: true tags: - { name: payum.action, factory: ht_payway_offsite, alias: payum.action.status } locastic.sylius_ht_payway_plugin.action.convert_payment: class: Locastic\SyliusHTPayWayPlugin\Action\ConvertPaymentAction + public: true tags: - { name: payum.action, factory: ht_payway_offsite, alias: payum.action.convert_payment } \ No newline at end of file From 12f78d243e5fd0fbf81927d2fc64609776095f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neven=20Jacmenovi=C4=87?= Date: Sat, 18 Mar 2023 12:33:37 +0100 Subject: [PATCH 2/2] testing naive approach to php 8 compatibility --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e956617..5cb1a3b 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,7 @@ } ], "require": { - "php": "^7.1", - + "php": "^7.1|^8.0", "sylius/sylius": "^1.1", "locastic/tcompayway": "^2.0" },