From a30bd21b6e1cb2df0b011d41d314947de4eb6f1f Mon Sep 17 00:00:00 2001 From: Dmitri Goosens <1250047+dgoosens@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:51:04 +0200 Subject: [PATCH] ignore api_platform.state.item_provider when Doctrine is not enabled hi, Similar to Getting: ``` bin/console cache:clear # ... Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86: !! !! The service "ApiPlatform\State\CreateProvider" has a dependency on a non-ex !! istent service "api_platform.state.item_provider". !! !! !! Script @auto-scripts was called via post-update-cmd ``` after upgrade to `3.0` manually removing the cache did not help `state.xml` defines a non existing dependency when neither Doctrine, Doctrine-MongoDb or Elastic are enabled Adding the `on-invalid="ignore"` solves the unmatched dependency --- src/Symfony/Bundle/Resources/config/state.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/Resources/config/state.xml b/src/Symfony/Bundle/Resources/config/state.xml index f0ecb8e23af..030088b4dd0 100644 --- a/src/Symfony/Bundle/Resources/config/state.xml +++ b/src/Symfony/Bundle/Resources/config/state.xml @@ -42,7 +42,7 @@ - +