-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Fatal error: Interface 'Psr\SimpleCache\CacheInterface' not found #31720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Correct: we removed the dependency from symfony/cache so you need to declare it explicitly in your app now. Maybe worth a CHANGELOG/UPGRADE entry? Would you mind sending a PR doing so? |
What troubles me a bit is that Symfony 4.2 applications that don't use the PSR interface directly suddenly fail after the upgrade, for instance when instantiating (the now deprecated) |
My application used Simple Cache, which is now deprecated. I think that while Simple Cache exists, |
Either that or we need to make sure that the deprecated classes remain usable without the PSR interface. |
Oh, it's already in the changelog and upgrade files, all good on my side, there is no other way I know about. |
that's not possible, as the very purpose of the classes in the |
Fair enough. In the project where I fixed this issue a couple of days ago, the developers just used I might have missed the discussion on the topic, but would it be that problematic to keep the dependency for now and remove it together with the deprecated implementations in 5.0? I get the impression that the upgrade path might be smoother that way since developers would get a proper deprecation notice instead of a fatal error. |
That'd smoothen for ppl that move to 4.3 and do the change before 4.4. Thus it wouldn't change the core process. But we can yes. |
Closing as "not a bug". We can smoothen, but the more we wait the less an issue this is :) |
@nicolas-grekas isn't that a breaking change though? We are upgrading from the previous minor, and our apps are breaking due to this change... |
Mysterious failure on AppVeyor: https://ci.appveyor.com/project/dunglas/dunglasapibundle/builds/25778904#L340 Something different about Windows, I suppose. |
@teohhanhui Could be a variant of #32395 |
Curiously enough, it doesn't happen on And of course, it only happens on Windows in our case. Lol... |
…from the general symfony cache framework in the version bump from 4.3.9 to 4.4.0. This adds the new dependency to make the cache interface available again
…from the general symfony cache framework in the version bump from 4.3.9 to 4.4.0. (#486) This adds the new dependency to make the cache interface available again
TL;DR: composer req psr/simple-cache |
After upgrade from v4.2.9 to v4.3.0
Helps
The text was updated successfully, but these errors were encountered: