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.
This PR adds support for using a symfony/cache pool directly without having to create extra services. It makes the default configuration from the recipe a lot shorter:
The added normalisation step in
Configuration
is to add atype
field to the cache configuration when using thecache_provider
setting for DoctrineCacheBundle. This makes the entire block of creating the correct cache alias simpler.With this PR, using the new
pool
setting is optional, as is the dependency onsymfony/cache
. In a future PR, we'll be deprecating support for declaring caches through DoctrineCacheBundle, leaving only theid
andpool
cache types. Support for DoctrineCacheBundle will be dropped in DoctrineBundle 2.0.This PR was created during the Symfony Hackathon sponsored by the EU-FOSSA 2 program.