diff --git a/src/Compatibility/DependencyLoader.php b/src/Compatibility/DependencyLoader.php index 4d089e1e1..ba60218de 100644 --- a/src/Compatibility/DependencyLoader.php +++ b/src/Compatibility/DependencyLoader.php @@ -59,8 +59,6 @@ public function loadServices(): void # load other data if ($versionCompare->gte('6.4')) { $loader->load('compatibility/services_6.4.xml'); - } elseif ($versionCompare->gte('6.3.5.0')) { - $loader->load('compatibility/services_6.3.5.0.xml'); } if ($versionCompare->gte('6.5')) { diff --git a/src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php b/src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php deleted file mode 100644 index 0a4112bfb..000000000 --- a/src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php +++ /dev/null @@ -1,56 +0,0 @@ - $paymentMethodRemovers - */ - public function __construct(AbstractPaymentMethodRoute $corePaymentMethodRoute, \Traversable $paymentMethodRemovers) - { - $this->corePaymentMethodRoute = $corePaymentMethodRoute; - $this->paymentMethodRemovers = iterator_to_array($paymentMethodRemovers); - } - - /** - * @return AbstractPaymentMethodRoute - */ - public function getDecorated(): AbstractPaymentMethodRoute - { - return $this->corePaymentMethodRoute; - } - - /** - * @param Request $request - * @param SalesChannelContext $context - * @return PaymentMethodRouteResponse - */ - public function load(Request $request, SalesChannelContext $context): PaymentMethodRouteResponse - { - $originalData = $this->corePaymentMethodRoute->load($request, $context); - - foreach ($this->paymentMethodRemovers as $paymentMethodRemover) { - $originalData = $paymentMethodRemover->removePaymentMethods($originalData, $context); - } - - return $originalData; - } -} diff --git a/src/Controller/Api/Order/Sw6/OrderController.php b/src/Controller/Api/Order/Sw6/OrderController.php deleted file mode 100644 index eeef3cfad..000000000 --- a/src/Controller/Api/Order/Sw6/OrderController.php +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Resources/config/routes/admin-api/order.xml b/src/Resources/config/routes/admin-api/order.xml index 0b0630af4..8163d0007 100644 --- a/src/Resources/config/routes/admin-api/order.xml +++ b/src/Resources/config/routes/admin-api/order.xml @@ -3,5 +3,17 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\Order\OrderControllerBase::paymentUrl + api + true + true + + + Kiener\MolliePayments\Controller\Api\Order\OrderControllerBase::paymentUrlLegacy + api + true + true + diff --git a/src/Resources/config/routes/admin-api/payment_method.xml b/src/Resources/config/routes/admin-api/payment_method.xml index 0b0630af4..9169bc0c4 100644 --- a/src/Resources/config/routes/admin-api/payment_method.xml +++ b/src/Resources/config/routes/admin-api/payment_method.xml @@ -4,4 +4,18 @@ xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\PaymentMethod\PaymentMethodControllerBase::updatePaymentMethods + api + true + true + + + + Kiener\MolliePayments\Controller\Api\PaymentMethod\PaymentMethodControllerBase::updatePaymentMethodsLegacy + api + true + true + + diff --git a/src/Resources/config/routes/admin-api/refund.xml b/src/Resources/config/routes/admin-api/refund.xml index 0b0630af4..e952ff1ea 100644 --- a/src/Resources/config/routes/admin-api/refund.xml +++ b/src/Resources/config/routes/admin-api/refund.xml @@ -3,5 +3,80 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundOrderNumber + api + true + true + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundManagerData + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::list + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::total + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundOrderID + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::cancel + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundManagerDataLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::listLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::totalLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::cancelLegacy + api + true + true + diff --git a/src/Resources/config/routes/admin-api/return.xml b/src/Resources/config/routes/admin-api/return.xml index 0b0630af4..f23b5ee55 100644 --- a/src/Resources/config/routes/admin-api/return.xml +++ b/src/Resources/config/routes/admin-api/return.xml @@ -3,5 +3,17 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\Payment\ReturnControllerBase::returnAction + api + false + false + + + Kiener\MolliePayments\Controller\Api\Payment\ReturnControllerBase::returnActionLegacy + api + false + false + diff --git a/src/Resources/config/routes/admin-api/shipping.xml b/src/Resources/config/routes/admin-api/shipping.xml index 0b0630af4..41ae4ea5c 100644 --- a/src/Resources/config/routes/admin-api/shipping.xml +++ b/src/Resources/config/routes/admin-api/shipping.xml @@ -4,4 +4,96 @@ xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::status + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::statusLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::total + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::totalLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipOrderOperational + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipOrderOperationalDeprecated + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipOrderBatchOperational + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipItemOperational + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipItemOperationalDeprecated + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipOrderAdmin + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipOrderAdminLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipItemAdmin + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Order\ShippingControllerBase::shipItemAdminLegacy + api + true + true + + diff --git a/src/Resources/config/routes/admin-api/subscription.xml b/src/Resources/config/routes/admin-api/subscription.xml new file mode 100644 index 000000000..02d652105 --- /dev/null +++ b/src/Resources/config/routes/admin-api/subscription.xml @@ -0,0 +1,63 @@ + + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::cancel + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::cancelLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::pause + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::pauseLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::resume + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::resumeLegacy + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::skip + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Subscription\SubscriptionControllerBase::skipLegacy + api + true + true + + + diff --git a/src/Resources/config/routes/admin-api/support.xml b/src/Resources/config/routes/admin-api/support.xml index 0b0630af4..a033c838a 100644 --- a/src/Resources/config/routes/admin-api/support.xml +++ b/src/Resources/config/routes/admin-api/support.xml @@ -4,4 +4,18 @@ xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\Support\SupportControllerBase::requestSupport + api + true + true + + + + Kiener\MolliePayments\Controller\Api\Support\SupportControllerBase::requestSupportLegacy + api + true + true + + diff --git a/src/Resources/config/routes/admin-api/webhook.xml b/src/Resources/config/routes/admin-api/webhook.xml index 0b0630af4..9268f416a 100644 --- a/src/Resources/config/routes/admin-api/webhook.xml +++ b/src/Resources/config/routes/admin-api/webhook.xml @@ -4,4 +4,59 @@ xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookLegacyAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionLegacyAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionRenewAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionRenewLegacyAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionMandateUpdatedAction + api + false + false + + + + Kiener\MolliePayments\Controller\Api\Webhook\WebhookControllerBase::webhookSubscriptionMandateUpdatedLegacyAction + api + false + false + diff --git a/src/Resources/config/routes/storefront/credit_card.xml b/src/Resources/config/routes/storefront/credit_card.xml index d8cbc7c3a..209ae9215 100644 --- a/src/Resources/config/routes/storefront/credit_card.xml +++ b/src/Resources/config/routes/storefront/credit_card.xml @@ -6,16 +6,19 @@ Kiener\MolliePayments\Controller\Storefront\CreditCard\CreditCardControllerBase::storeCardToken + storefront Kiener\MolliePayments\Controller\Storefront\CreditCard\CreditCardControllerBase::storeMandateId + storefront Kiener\MolliePayments\Controller\Storefront\CreditCard\CreditCardControllerBase::revokeMandate + storefront diff --git a/src/Resources/config/routes/storefront/ideal.xml b/src/Resources/config/routes/storefront/ideal.xml index 0b0630af4..1b2fe8528 100644 --- a/src/Resources/config/routes/storefront/ideal.xml +++ b/src/Resources/config/routes/storefront/ideal.xml @@ -4,4 +4,10 @@ xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> + + Kiener\MolliePayments\Controller\Storefront\iDeal\iDealControllerBase::storeIssuer + storefront + + + diff --git a/src/Resources/config/routes/storefront/mollie_failure.xml b/src/Resources/config/routes/storefront/mollie_failure.xml index 0fd2f2b5b..bfa1a6648 100644 --- a/src/Resources/config/routes/storefront/mollie_failure.xml +++ b/src/Resources/config/routes/storefront/mollie_failure.xml @@ -10,8 +10,8 @@ .* Kiener\MolliePayments\Controller\Storefront\Payment\MollieFailureControllerBase::paymentFailedAction storefront - false + + + Kiener\MolliePayments\Controller\Storefront\POS\PosControllerBase::storeTerminal + storefront + + + + + Kiener\MolliePayments\Controller\Storefront\POS\PosControllerBase::checkoutAction + storefront + + + + + Kiener\MolliePayments\Controller\Storefront\POS\PosControllerBase::statusAction + storefront + + + diff --git a/src/Resources/config/routes/storefront/shipping.xml b/src/Resources/config/routes/storefront/shipping.xml deleted file mode 100644 index 0b0630af4..000000000 --- a/src/Resources/config/routes/storefront/shipping.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/src/Resources/config/routes/storefront/subscription.xml b/src/Resources/config/routes/storefront/subscription.xml deleted file mode 100644 index 0b0630af4..000000000 --- a/src/Resources/config/routes/storefront/subscription.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/src/Resources/config/routes/storefront/support.xml b/src/Resources/config/routes/storefront/support.xml deleted file mode 100644 index 0b0630af4..000000000 --- a/src/Resources/config/routes/storefront/support.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml index 9777ca28c..078c98d5d 100644 --- a/src/Resources/config/services/controller.xml +++ b/src/Resources/config/services/controller.xml @@ -93,6 +93,14 @@ + + + + + + + + @@ -183,13 +191,6 @@ - - - - - - - getRequest()->attributes; - /** @var RouteScope|null|string $routeScope */ + /** @var null|RouteScope|string $routeScope */ $routeScope = $attributes->get(PlatformRequest::ATTRIBUTE_ROUTE_SCOPE); if (is_string($routeScope)) { - $routeScope = new RouteScope(['scopes'=>[$routeScope]]); $attributes->set(PlatformRequest::ATTRIBUTE_ROUTE_SCOPE, $routeScope); } } -} \ No newline at end of file +}