0db972355b
This PR was merged into the 3.3-dev branch.
Discussion
----------
[DI][Router][DX] Invalidate routing cache when container parameters changed
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #21426
| License | MIT
| Doc PR | N/A
Supersedes #21443 but only for master.
Indeed, this implementation uses a new feature: a `ContainerParametersResource` which compares cached containers parameters (collected at some point, here by the `Router`) with current ones in the container.
On the contrary of the previous PR targeting 2.7, this will only invalidate routing cache when parameters actually used in the routes changed and will avoid always rebuilding the routing cache when the container is rebuilt, just to catch the edge case of someone modifying a parameter.
Commits
-------
|
||
---|---|---|
.. | ||
schema | ||
annotations.xml | ||
assets.xml | ||
cache_debug.xml | ||
cache.xml | ||
collectors.xml | ||
console.xml | ||
debug_prod.xml | ||
debug.xml | ||
esi.xml | ||
form_csrf.xml | ||
form_debug.xml | ||
form.xml | ||
fragment_listener.xml | ||
fragment_renderer.xml | ||
identity_translator.xml | ||
profiling.xml | ||
property_access.xml | ||
property_info.xml | ||
request.xml | ||
routing.xml | ||
security_csrf.xml | ||
serializer.xml | ||
services.xml | ||
session.xml | ||
ssi.xml | ||
templating_debug.xml | ||
templating_php.xml | ||
templating.xml | ||
test.xml | ||
translation_debug.xml | ||
translation.xml | ||
validator.xml | ||
web.xml | ||
workflow.xml |