Add PAYPAL convert action service ID to the removed services

This commit is contained in:
Francis Hilaire 2023-11-01 14:28:10 +01:00 committed by GitHub
parent ba400e4fa0
commit b3914d4bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -63,6 +63,7 @@
"nyholm/psr7": "^1.6",
"pagerfanta/pagerfanta": "^3.0",
"payum/core": "^1.7.3",
"payum/offline": "^1.7.3",
"payum/payum-bundle": "^2.5",
"php-http/httplug": "^2.4",
"php-http/message-factory": "^1.0",
@ -213,7 +214,6 @@
"matthiasnoback/symfony-dependency-injection-test": "^4.2",
"mikey179/vfsstream": "^1.6",
"mockery/mockery": "^1.4",
"payum/offline": "^1.7.3",
"payum/paypal-express-checkout-nvp": "^1.7.3",
"payum/stripe": "^1.7.3",
"phparkitect/phparkitect": "^0.2.9",

View file

@ -20,6 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
final class UnregisterPaypalGatewayTypePass implements CompilerPassInterface
{
private const PAYPAL_GATEWAY_TYPE_SERVICE_ID = 'sylius.form.type.gateway_configuration.paypal';
private const PAYPAL_CONVERT_ACTION_SERVICE_ID = 'sylius.payum_action.paypal_express_checkout.convert_payment';
public function process(ContainerBuilder $container): void
{
@ -28,5 +29,6 @@ final class UnregisterPaypalGatewayTypePass implements CompilerPassInterface
}
$container->removeDefinition(self::PAYPAL_GATEWAY_TYPE_SERVICE_ID);
$container->removeDefinition(self::PAYPAL_CONVERT_ACTION_SERVICE_ID);
}
}