Merge branch '2.7' into 2.8

* 2.7:
  Improved Bootstrap form theme for hidden fields
  bumped Symfony version to 2.7.11
  updated VERSION for 2.7.10
  updated CHANGELOG for 2.7.10
This commit is contained in:
Fabien Potencier 2016-03-01 08:29:35 +01:00
commit 1a77a44d8f
4 changed files with 84 additions and 11 deletions

View File

@ -7,6 +7,79 @@ in 2.7 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.7.0...v2.7.1
* 2.7.10 (2016-02-28)
* bug #17947 Fix - #17676 (backport #17919 to 2.3) (Ocramius)
* bug #17942 Fix bug when using an private aliased factory service (WouterJ)
* bug #17798 [Form] Fix BC break by allowing 'choice_label' option to be 'false' in ChoiceType (HeahDude)
* bug #17542 ChoiceFormField of type "select" could be "disabled" (bouland)
* bug #17602 [HttpFoundation] Fix BinaryFileResponse incorrect behavior with if-range header (bburnichon)
* bug #17760 [Form] fix choice value "false" in ChoiceType (HeahDude)
* bug #17914 [Console] Fix escaping of trailing backslashes (nicolas-grekas)
* bug #17074 Fix constraint validator alias being required (Triiistan)
* bug #17866 [DependencyInjection] replace alias in factories (xabbuh)
* bug #17867 [DependencyInjection] replace alias in factory services (xabbuh)
* bug #17569 [FrameworkBundle] read commands from bundles when accessing list (havvg)
* bug #16987 [FileSystem] Windows fix (flip111)
* bug #17787 [Form] Fix choice placeholder edge cases (Tobion)
* bug #17835 [Yaml] fix default timezone to be UTC (xabbuh)
* bug #17823 [DependencyInjection] fix dumped YAML string (xabbuh)
* bug #17818 [Console] InvalidArgumentException is thrown under wrong condition (robinkanters)
* bug #17819 [HttpKernel] Prevent a fatal error when DebugHandlersListener is used with a kernel with no terminateWithException() method (jakzal)
* bug #17814 [DependencyInjection] fix dumped YAML snytax (xabbuh)
* bug #17099 [Form] Fixed violation mapping if multiple forms are using the same (or part of the same) property path (alekitto)
* bug #17694 [DoctrineBridge] [Form] fix choice_value in EntityType (HeahDude)
* bug #17719 [DependencyInjection] fixed exceptions thrown by get method of ContainerBuilder (lukaszmakuch)
* bug #17742 [DependencyInjection] Fix #16461 Container::set() replace aliases (mnapoli)
* bug #17745 Added more exceptions to singularify method (javiereguiluz)
* bug #17691 Fixed (string) catchable fatal error for PHP Incomplete Class instances (yceruto)
* bug #17766 Fixed (string) catchable fatal error for PHP Incomplete Class instances (yceruto)
* bug #17757 [HttpFoundation] BinaryFileResponse sendContent return as parent. (2.3) (SpacePossum)
* bug #17702 [TwigBridge] forward compatibility with Yaml 3.1 (xabbuh)
* bug #17672 [DependencyInjection][Routing] add files used in FileResource objects (xabbuh)
* bug #17600 Fixed the Bootstrap form theme for inlined checkbox/radio (javiereguiluz)
* bug #17596 [Translation] Add resources from fallback locale to parent catalogue (c960657)
* bug #17605 [FrameworkBundle] remove default null value for asset version (xabbuh)
* bug #17606 [DependencyInjection] pass triggerDeprecationError arg to parent class (xabbuh)
* bug #16956 [DependencyInjection] XmlFileLoader: enforce tags to have a name (xabbuh)
* bug #16265 [BrowserKit] Corrected HTTP_HOST logic (Naktibalda)
* bug #17554 [DependencyInjection] resolve aliases in factories (xabbuh)
* bug #17555 [DependencyInjection] resolve aliases in factory services (xabbuh)
* bug #17511 [Form] ArrayChoiceList can now deal with a null in choices (issei-m)
* bug #17430 [Serializer] Ensure that groups are strings (dunglas)
* bug #15272 [FrameworkBundle] Fix template location for PHP templates (jakzal)
* bug #11232 [Routing] Fixes fatal errors with object resources in AnnotationDirectoryLoader::supports (Tischoi)
* bug #17526 Escape the delimiter in Glob::toRegex (javiereguiluz)
* bug #17527 fixed undefined variable (fabpot)
* bug #15706 [framework-bundle] Added support for the `0.0.0.0/0` trusted proxy (zerkms)
* bug #16274 [HttpKernel] Lookup the response even if the lock was released after two second wait (jakzal)
* bug #17355 [DoctrineBridge][Validator] >= 2.3 Pass association instead of ID as argument (xavismeh)
* bug #17454 Allow absolute URLs to be displayed in the debug toolbar (javiereguiluz)
* bug #16736 [Request] Ignore invalid IP addresses sent by proxies (GromNaN)
* bug #17486 [FrameworkBundle] Throw for missing container extensions (kix)
* bug #16873 Able to load big xml files with DomCrawler (zorn-v)
* bug #16897 [Form] Fix constraints could be null if not set (DZunke)
* bug #16912 [Translation][Writer] avoid calling setBackup if the dumper is not FileDumper (aitboudad)
* bug #17505 sort bundles in config:dump-reference command (xabbuh)
* bug #17514 [Asset] Add defaultNull to version configuration (ewgRa)
* bug #16511 [Asset] Ability to set empty version strategy in packages (ewgRa)
* bug #17503 [Asset] CLI: use request context to generate absolute URLs (xabbuh)
* bug #17478 [HttpFoundation] Do not overwrite the Authorization header if it is already set (jakzal)
* bug #17461 [Yaml] tag for dumped PHP objects must be a local one (xabbuh)
* bug #17456 [DX] Remove default match from AbstractConfigCommand::findExtension (kix)
* bug #17424 [Process] Update in 2.7 for stream-based output storage (romainneutron)
* bug #17423 [Process] Use stream based storage to avoid memory issues (romainneutron)
* bug #17406 [Form] ChoiceType: Fix a notice when 'choices' normalizer is replaced (paradajozsef)
* bug #17433 [FrameworkBundle] Don't log twice with the error handler (nicolas-grekas)
* bug #17418 Fixed Bootstrap form theme form "reset" buttons (javiereguiluz)
* bug #17404 fix merge 2.3 into 2.7 for SecureRandom dependency (Tobion)
* bug #17373 [SecurityBundle] fix SecureRandom service constructor args (Tobion)
* bug #17380 [TwigBridge] Use label_format option for checkbox and radio labels (enumag)
* bug #17377 Fix performance (PHP5) and memory (PHP7) issues when using token_get_all (nicolas-grekas, peteward)
* bug #17389 [Routing] Fixed correct class name in thrown exception (fixes #17388) (robinvdvleuten)
* bug #17358 [ClassLoader] Use symfony/polyfill-apcu (nicolas-grekas)
* bug #17370 [HttpFoundation][Cookie] Cookie DateTimeInterface fix (wildewouter)
* 2.7.9 (2016-01-14)
* security #17359 do not ship with a custom rng implementation (xabbuh, fabpot)

View File

@ -3,7 +3,7 @@
{# Widgets #}
{% block form_widget_simple -%}
{% if type is not defined or 'file' != type %}
{% if type is not defined or type not in ['file', 'hidden'] %}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
{% endif %}
{{- parent() -}}

View File

@ -22,7 +22,7 @@
"require-dev": {
"symfony/asset": "~2.7|~3.0.0",
"symfony/finder": "~2.3|~3.0.0",
"symfony/form": "~2.8",
"symfony/form": "~2.8.3",
"symfony/http-kernel": "~2.8|~3.0.0",
"symfony/polyfill-intl-icu": "~1.0",
"symfony/routing": "~2.2|~3.0.0",

View File

@ -711,7 +711,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="radio"][@name="name"][@id="name_1"][@value="&b"][not(@checked)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -871,7 +871,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="radio"][@name="name"][@id="name_1"][@value="&b"][not(@checked)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -910,7 +910,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="radio"][@name="name"][@id="name_1"][@value="&b"][not(@checked)]'.$classPart.'
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -957,7 +957,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="radio"][@name="name"][@id="name_1"][not(@checked)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -1041,7 +1041,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="radio"][@name="name"][@id="name_1"][not(@checked)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -1087,7 +1087,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="checkbox"][@name="name[]"][@id="name_2"][@checked][not(@required)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -1257,7 +1257,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="checkbox"][@name="name[]"][@id="name_2"][@checked][not(@required)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -1306,7 +1306,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
./input[@type="checkbox"][@name="name[]"][@id="name_2"][@checked][not(@required)]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"][@class="form-control"]
/following-sibling::input[@type="hidden"][@id="name__token"]
]
'
);
@ -1808,7 +1808,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
'/input
[@type="hidden"]
[@name="name"]
[@class="my&class form-control"]
[@class="my&class"]
[@value="foo&bar"]
'
);