ignore api_platform.state.item_provider when Doctrine is not enabled#4954
Merged
Conversation
hi, Similar to <api-platform/api-platform#1265> 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
dunglas
approved these changes
Sep 16, 2022
Member
|
thanks |
Contributor
|
Shouldn't this be backported to 3.0? |
soyuka
pushed a commit
that referenced
this pull request
Sep 29, 2022
* ignore api_platform.state.item_provider when Doctrine is not enabled (#4954) * fix(symfony): metadata cache is broken in dev/prod Co-authored-by: Dmitri Goosens <1250047+dgoosens@users.noreply.github.com>
soyuka
pushed a commit
to soyuka/core
that referenced
this pull request
Sep 29, 2022
soyuka
pushed a commit
to soyuka/core
that referenced
this pull request
Sep 30, 2022
|
3.0.1 is been released without this fix. It is still unusable for users that do not use Doctrine... |
Contributor
Author
|
any chance to get this included in 3.0.1 as @chalasr suggested ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hi,
Similar to api-platform/api-platform#1265
Getting:
after upgrade to
3.0manually removing the cache did not help
state.xmldefines a non existing dependency when neither Doctrine, Doctrine-MongoDb or Elastic are enabledAdding the
on-invalid="ignore"solves the unmatched dependency