This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config
Fabien Potencier 0db972355b feature #21767 [DI][Router][DX] Invalidate routing cache when container parameters changed (ogizanagi)
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
-------

fad4d9e2ef [DI][Router][DX] Invalidate routing cache when container parameters changed
2017-03-05 11:44:35 -08:00
..
schema [FrameworkBundle] Configurable paths for validation files 2017-01-23 15:03:50 +01:00
annotations.xml Merge branch '3.2' 2017-02-14 17:35:24 +01:00
assets.xml [Asset] Add support for preloading with links and HTTP/2 push 2017-02-19 14:56:07 -08:00
cache_debug.xml Added cache data collector and profiler page 2017-01-17 21:46:25 -08:00
cache.xml [FrameworkBundle] Add more autowiring aliases 2017-02-03 10:29:29 +01:00
collectors.xml [FrameworkBundle] Extends the RequestDataCollector 2016-03-30 19:02:53 +02:00
console.xml Add Console ExceptionListener 2017-01-23 23:15:00 +01:00
debug_prod.xml Added a default ide file link web view 2016-10-25 15:27:26 +02:00
debug.xml Support autowiring for EventDispatcher/EventDispatcherInterface 2016-11-16 19:46:34 +01:00
esi.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
form_csrf.xml [Form] use new service locator in DependencyInjectionExtension class, so that form types can be made private at some point. 2017-02-28 10:16:52 +01:00
form_debug.xml [Form] use new service locator in DependencyInjectionExtension class, so that form types can be made private at some point. 2017-02-28 10:16:52 +01:00
form.xml [Form] use new service locator in DependencyInjectionExtension class, so that form types can be made private at some point. 2017-02-28 10:16:52 +01:00
fragment_listener.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
fragment_renderer.xml Replace some container injections by service locators 2017-02-26 14:01:31 +01:00
identity_translator.xml don't load translator services if not required 2016-12-16 14:04:52 +01:00
profiling.xml [HttpKernel] removed deprecated profiler storages 2015-10-01 07:55:42 +02:00
property_access.xml [PropertyAccess] Add PSR-6 cache 2016-06-08 18:51:42 +02:00
property_info.xml [FrameworkBundle] Execute the PhpDocExtractor earlier 2017-01-30 14:26:57 -08:00
request.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
routing.xml added support for glob loaders in Config 2017-02-18 08:06:39 -08:00
security_csrf.xml Merge branch '2.8' 2015-10-07 09:44:07 +02:00
serializer.xml Merge branch '3.1' 2016-11-14 08:20:13 -08:00
services.xml feature #21767 [DI][Router][DX] Invalidate routing cache when container parameters changed (ogizanagi) 2017-03-05 11:44:35 -08:00
session.xml Replace some container injections by service locators 2017-02-26 14:01:31 +01:00
ssi.xml [Framework+SecurityBundle] remove recently introduced *.class parameters 2014-10-06 15:17:46 +02:00
templating_debug.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
templating_php.xml Added a default ide file link web view 2016-10-25 15:27:26 +02:00
templating.xml [FrameworkBundle] Fix Templating Engine autowiring 2016-03-31 11:54:21 +02:00
test.xml Replace some container injections by service locators 2017-02-26 14:01:31 +01:00
translation_debug.xml Minor fixes for the profiler and toolbar 2015-10-01 15:15:47 +02:00
translation.xml [DI] Deprecate autowiring-types in favor of aliases 2017-02-01 19:42:39 +01:00
validator.xml [DependencyInjection] Use a service locator in AddConstraintValidatorsPass 2017-03-01 08:17:18 -08:00
web.xml Added the SessionValueResolver 2017-02-22 09:50:54 +01:00
workflow.xml [Workfow] Rename current MarkingStore 2016-11-09 16:22:39 +01:00