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 68737ebbf3 feature #19485 [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter (tgalopin)
This PR was merged into the 3.2-dev branch.

Discussion
----------

[FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | -
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Following the cache warmer for annotations PR (https://github.com/symfony/symfony/pull/18533), this PR introduces a cache warmer for YAML and XML Validator configuration.

Based on the PhpArrayAdapter, it uses the naming conventions (`Resources/config/validation`) to find the files and compile them into a single PHP file stored in the cache directory. This file uses shared memory on PHP 7.

The benefit of this PR are the same than the ones of the annotations PR:

- validation configuration can be warmed up offline
- on PHP 7, there is no need for user extension to get maximum performances (ie. if you use this PR and the other one, you probably won't need to enable APCu to have great performances)
- on PHP 7 again, we are not sensitive to APCu memory fragmentation
- last but not least, global performance is slightly better (I get 30us per class gain in Blackfire)

This PR also deprecates the framework.validator.cache key in favor of the cache pool introduced in https://github.com/symfony/symfony/pull/18544.

Commits
-------

6bdaf0b [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter
2016-09-14 14:10:29 -07:00
..
schema Merge branch '3.1' 2016-06-28 18:31:08 +02:00
annotations.xml [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations 2016-07-30 03:40:00 -04:00
assets.xml renamed asset_path() to asset() and added a BC layer 2015-02-10 13:45:46 +01:00
cache.xml feature #19891 [FrameworkBundle] Add cache:pool:clear command (nicolas-grekas) 2016-09-14 12:20:05 -07:00
collectors.xml [FrameworkBundle] Extends the RequestDataCollector 2016-03-30 19:02:53 +02:00
debug_prod.xml [FrameworkBundle] Add %debug.file_link_format% with remapping for IDE links 2016-09-14 21:12:42 +02:00
debug.xml [Debug] Better error handling 2016-08-17 17:20:26 +02:00
esi.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
form_csrf.xml Merge branch '2.8' into 3.1 2016-08-16 07:58:24 -07:00
form_debug.xml Merge branch '2.8' 2015-10-01 18:50:30 +02:00
form.xml Merge branch '3.0' into 3.1 2016-06-29 07:41:56 +02:00
fragment_listener.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
fragment_renderer.xml Merge branch '2.8' 2015-09-10 10:18:49 +02: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 Fix PropertyInfo extractor namespace in framework bundle 2015-11-18 09:40:44 +01:00
request.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
router_dev.php Fix the server variables in the router_*.php files 2015-11-13 09:09:48 +01:00
router_prod.php Fix the server variables in the router_*.php files 2015-11-13 09:09:48 +01:00
router_test.php [FrameworkBundle] added a test router for the buil-in web server 2014-12-29 12:17:32 +01:00
routing.xml Merge branch '2.8' 2015-10-07 09:44:07 +02:00
security_csrf.xml Merge branch '2.8' 2015-10-07 09:44:07 +02:00
serializer.xml [FrameworkBundle] Introduce a cache warmer for Serializer based on PhpArrayAdapter 2016-08-17 20:09:37 +02:00
services.xml [ClassLoader] Add ClassCollectionLoader::inline() to generate inlined-classes files 2016-07-18 14:55:56 +02:00
session.xml removed all *.class parameters 2015-03-26 16:34:43 +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 [FrameworkBundle] Add %debug.file_link_format% with remapping for IDE links 2016-09-14 21:12:42 +02:00
templating.xml [FrameworkBundle] Fix Templating Engine autowiring 2016-03-31 11:54:21 +02:00
test.xml Merge branch '2.8' 2015-07-01 22:40:29 +02:00
translation_debug.xml Minor fixes for the profiler and toolbar 2015-10-01 15:15:47 +02:00
translation.xml Merge branch '2.8' into 3.0 2016-02-13 10:23:44 +01:00
validator.xml [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter 2016-08-11 14:01:30 +02:00
web.xml Merge branch '3.0' into 3.1 2016-06-30 11:40:26 +02:00
workflow.xml [Workflow] Added initial set of files 2016-06-23 14:28:20 +02:00