From b6040333454fd582e1c403337c6d9ca6652f8648 Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Wed, 27 Nov 2024 08:57:00 +0100 Subject: [PATCH 1/2] Add the container linter to the CI --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 19a69972..b8a0bd72 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -77,6 +77,11 @@ jobs: continue-on-error: true run: vendor/bin/composer-dependency-analyser + - name: Check service definitions + run: | + tests/Application/bin/console -edev lint:container + tests/Application/bin/console -eprod lint:container + - name: Static analysis run: vendor/bin/phpstan From 455fedc7b67d9175f2f9c08d44b8782d77f1f870 Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Wed, 27 Nov 2024 08:57:11 +0100 Subject: [PATCH 2/2] Fix service definitions --- config/services/controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/services/controller.php b/config/services/controller.php index 66ffaea4..0e0ca9af 100644 --- a/config/services/controller.php +++ b/config/services/controller.php @@ -45,6 +45,7 @@ $services->set(InitApplePayPaymentAction::class) ->args([ service('payum'), + service('sylius.context.cart'), ]) ->tag('controller.service_arguments') ;