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/Component
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
..
Asset Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
BrowserKit Merge branch '3.2' 2017-02-21 11:07:34 +01:00
Cache [master] Fix issues reported by static analyse 2017-02-28 16:38:18 +01:00
ClassLoader fixed Composer constraints 2017-02-18 11:13:35 -08:00
Config [Config] Fix associative sorting in FileLoader 2017-03-02 20:13:25 +01:00
Console Merge branch '3.2' 2017-03-01 10:19:35 -08:00
CssSelector Merge branch '3.2' 2017-02-21 11:07:34 +01:00
Debug fixed Composer constraints 2017-02-18 11:13:35 -08:00
DependencyInjection feature #21767 [DI][Router][DX] Invalidate routing cache when container parameters changed (ogizanagi) 2017-03-05 11:44:35 -08:00
DomCrawler Merge branch '3.2' 2017-02-21 11:07:34 +01:00
Dotenv Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
EventDispatcher feature #21625 Remove some container injections in favor of service locators (nicolas-grekas, chalasr) 2017-02-27 18:18:26 -08:00
ExpressionLanguage Merge branch '3.2' 2017-02-24 05:59:04 -08:00
Filesystem Merge branch '3.2' 2017-02-18 18:35:19 +01:00
Finder Merge branch '3.2' 2017-02-21 11:07:34 +01:00
Form Merge branch '3.2' 2017-03-05 10:17:03 -08:00
HttpFoundation Merge branch '3.2' 2017-03-04 13:23:47 +01:00
HttpKernel Move ControllerArgumentValueResolverPass to the HttpKernel component 2017-03-03 13:55:06 +01:00
Inflector Merge branch '3.2' 2017-02-20 14:49:17 +01:00
Intl Merge branch '3.2' 2017-03-05 09:43:56 -08:00
Ldap Merge branch '3.2' 2017-02-21 11:07:34 +01:00
OptionsResolver Merge branch '3.2' 2017-02-21 11:07:34 +01:00
Process Merge branch '3.2' 2017-03-04 13:23:47 +01:00
PropertyAccess Merge branch '3.2' 2017-02-18 18:35:19 +01:00
PropertyInfo Move PropertyInfoPass to the PropertyInfo component 2017-03-01 09:44:14 +01:00
Routing Move RoutingResolverPass to the Routing component 2017-03-05 16:12:05 +01:00
Security minor #21863 [Security] fix test class location (xabbuh) 2017-03-04 13:27:15 +01:00
Serializer Merge branch '3.2' 2017-03-05 09:43:56 -08:00
Stopwatch Merge branch '3.2' 2017-02-18 18:35:19 +01:00
Templating [2.8] Fix issues reported by static analyse 2017-02-28 15:08:20 +01:00
Translation Merge branch '3.2' 2017-03-04 13:23:47 +01:00
Validator Refactor file constraint logic 2017-03-01 09:51:56 -08:00
VarDumper [VarDumper] Allow seamless use of Data clones 2017-02-27 21:09:01 +01:00
Workflow Merge branch '3.2' 2017-02-28 15:44:39 +01:00
Yaml [Yaml] Fix legacy support for omitting mapping key 2017-03-01 23:36:19 +01:00