Skip to content

Fix constraint validator alias being required #16841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
636 commits
Select commit Hold shift + click to select a range
8d1cee9
feature #15929 [3.0][Config] Remove ResourceInterface::getResource() …
fabpot Sep 28, 2015
63c77aa
Merge branch '2.8'
Tobion Sep 29, 2015
b4092a7
[Ldap] update branch alias for the master branch
xabbuh Sep 29, 2015
232035e
minor #16003 [Ldap] update branch alias for the master branch (xabbuh)
Tobion Sep 29, 2015
797b93b
Merge branch '2.8'
fabpot Sep 30, 2015
6816451
fixed composer.json
fabpot Sep 30, 2015
ed610df
Merge branch '2.8'
fabpot Sep 30, 2015
3ffa422
[CssSelector] removed the deprecated CssSelector class
fabpot Sep 30, 2015
6b6de15
Removed supports{Attribute,Class}() methods
wouterj Sep 26, 2015
6f9e897
Remove AbstractVoter#isGranted() method
wouterj Sep 30, 2015
c3c5989
Remove more tests
wouterj Sep 30, 2015
1bcce3c
Merge branch '2.8'
fabpot Sep 30, 2015
aa2e7e4
feature #15899 [3.0][Security] Remove deprecated features (WouterJ)
fabpot Sep 30, 2015
317f7b4
[HttpFoundation] removed the ParameterBag::get() deep argument
fabpot Sep 30, 2015
a3b921d
Merge branch '2.8'
fabpot Oct 1, 2015
2925df5
[HttpKernel] removed deprecated profiler storages
fabpot Sep 30, 2015
77da8ad
Merge branch '2.8'
fabpot Oct 1, 2015
557e416
feature #16018 [HttpKernel] removed deprecated profiler storages (fab…
fabpot Oct 1, 2015
763d478
feature #16019 [HttpFoundation] removed the ParameterBag::get() deep …
fabpot Oct 1, 2015
4913362
Merge branch '2.8'
fabpot Oct 1, 2015
4652a60
Merge branch '2.8'
fabpot Oct 1, 2015
746ec84
Merge branch '2.8'
fabpot Oct 1, 2015
b02d3ab
Merge branch '2.8'
nicolas-grekas Oct 1, 2015
437398d
[3.0][Security] Remove deprecated features (follow up of #15899)
Koc Sep 30, 2015
fc41cf0
[3.0][FrameworkBundle] Removed deprecated features
wouterj Sep 26, 2015
d226d35
feature #15904 [3.0][FrameworkBundle] Removed deprecated features (Wo…
fabpot Oct 1, 2015
6dc3cf9
[3.0][DoctrineBridge] Removed deprecated features
wouterj Sep 26, 2015
7bab317
feature #15900 [3.0][DoctrineBridge] Removed deprecated features (Wou…
fabpot Oct 1, 2015
925ecaf
[Validator] removed deprecated features in Constraints
fabpot Sep 30, 2015
2a6b629
[Validator] removed deprecated methods
fabpot Sep 30, 2015
8fd32ba
[Validator] remove the API_VERSION
fabpot Sep 30, 2015
17cedd3
[Form] removed usage of Validator deprecated features
fabpot Sep 30, 2015
bfba6ca
[Form] removed precision option
fabpot Oct 1, 2015
582f3a3
[Form] removed deprecated FormType::getName()
fabpot Oct 1, 2015
33f3400
[Form] removed deprecated features
fabpot Sep 30, 2015
48d1169
feature #16024 [Validator] removed deprecated features in Validator a…
fabpot Oct 1, 2015
721a267
Merge branch '2.8'
Tobion Oct 1, 2015
a2e154d
[HttpKernel] make RequestStack parameter required for classes that ne…
Tobion Jul 3, 2015
aff5af6
fix wrong merge
Tobion Oct 1, 2015
215fdbe
Removed alias attribute usages
wouterj Oct 1, 2015
ffddafc
feature #15196 [HttpKernel] make RequestStack parameter required (Tob…
fabpot Oct 1, 2015
905245f
bug #16046 [WIP][3.0][Form] Removed usage of deprecated form tag attr…
fabpot Oct 1, 2015
aa7d4e6
feature #16020 [CssSelector] removed the deprecated CssSelector class…
fabpot Oct 1, 2015
5075e6c
[appveyor] Fix command line
nicolas-grekas Oct 2, 2015
372be7e
Fix merge
nicolas-grekas Oct 2, 2015
a743fb6
[3.0] Remove more deprecated interfaces in Form and Validator
nicolas-grekas Sep 3, 2015
5ab9954
feature #16067 [3.0] Remove more deprecated interfaces in Form and Va…
fabpot Oct 2, 2015
c3bad5a
Merge branch '2.8'
fabpot Oct 2, 2015
7115c1e
[HttpFoundation] Request->getRequestFormat should only rely on the re…
pvandommelen Sep 9, 2013
8fdb412
feature #8967 [HttpFoundation] Request->getRequestFormat should only …
fabpot Oct 2, 2015
094ca41
Merge branch '2.8'
fabpot Oct 2, 2015
7e3c4a6
feature #16035 [3.0][Security] Remove deprecated features (follow up …
fabpot Oct 2, 2015
4067a5c
Merge branch '2.8'
fabpot Oct 2, 2015
e8d6764
[HttpFoundation] change precedence of parameters in Request::get
Tobion Oct 2, 2015
4478cde
Merge branch '2.8'
fabpot Oct 2, 2015
abca2d6
[3.0] Clean Form, Validator, DowCrawler and some more
nicolas-grekas Oct 2, 2015
d606e76
feature #16075 [3.0] Clean Form, Validator, DowCrawler and some more …
fabpot Oct 2, 2015
3b7cb33
fix validator test dependency
Tobion Oct 2, 2015
d128735
Fix the crawler refactoring
stof Oct 2, 2015
91cab2e
bug #16086 fix validator test dependency (Tobion)
fabpot Oct 3, 2015
38c059f
bug #16094 Fix the crawler refactoring (stof)
fabpot Oct 3, 2015
88e2d70
feature #16076 [HttpFoundation] change precedence of parameters in Re…
fabpot Oct 5, 2015
4e0c6e1
Replace is_callable checks with type hints
mpajunen Apr 12, 2015
2b29602
Merge branch '2.8'
fabpot Oct 5, 2015
7685cdd
Add more callable type hints
nicolas-grekas Oct 5, 2015
8b15af9
feature #16125 Replace is_callable checks with type hints (mpajunen, …
fabpot Oct 6, 2015
534a91c
[3.0] Various deprecations cleanups
nicolas-grekas Oct 4, 2015
f72a7c3
feature #16107 [3.0] Various deprecations cleanups (nicolas-grekas)
fabpot Oct 6, 2015
6005fe5
Merge branch '2.8'
nicolas-grekas Oct 7, 2015
d5deec9
Fix merge, removing legacy TranslationSyncStatusTest
nicolas-grekas Oct 7, 2015
7b80589
Merge branch '2.8'
nicolas-grekas Oct 7, 2015
2da72cb
[Translation] Fix tests compat with 2.8
nicolas-grekas Oct 7, 2015
dc4a7df
minor #16162 [Translation] Fix tests compat with 2.8 (nicolas-grekas)
nicolas-grekas Oct 7, 2015
2e11b8b
Merge branch '2.8'
nicolas-grekas Oct 10, 2015
66a60f7
Merge branch '2.8'
nicolas-grekas Oct 11, 2015
5b67819
Merge branch '2.8'
nicolas-grekas Oct 12, 2015
133bd0a
Merge branch '2.8'
fabpot Oct 12, 2015
5dbf6bc
[Yaml] removed parsing of non-escaped backslash in a double-quoted st…
fabpot Oct 11, 2015
c401e2a
[3.0][appveyor] load apcu and memcache
nicolas-grekas Oct 12, 2015
77fcaf4
minor #16209 [3.0][appveyor] load apcu and memcache (nicolas-grekas)
nicolas-grekas Oct 12, 2015
1d3a829
Merge branch '2.8'
nicolas-grekas Oct 12, 2015
138654d
feature #16203 [Yaml] removed YAML parser \ escaping in double-quotes…
fabpot Oct 12, 2015
38a70f3
Merge branch '2.8'
nicolas-grekas Oct 13, 2015
cfb15ff
Merge branch '2.8'
nicolas-grekas Oct 13, 2015
2829239
Merge branch '2.8'
fabpot Oct 16, 2015
82bfbf0
Merge branch '2.8'
fabpot Oct 18, 2015
abf389c
[Console] Add progress indicator helper
kbond Oct 3, 2014
99de3fd
feature #12119 [Console] Add progress indicator helper (kbond)
fabpot Oct 19, 2015
f8019c8
add method getListenerPriority() to interface
xabbuh Oct 20, 2015
6efcd8b
[Form] remove obsolete private method in factory
Tobion Oct 21, 2015
47b64c2
minor #16308 [Form] remove obsolete private method in factory (Tobion)
fabpot Oct 23, 2015
3bdcfb9
feature #16301 [EventDispatcher] add method getListenerPriority() to …
Tobion Oct 23, 2015
48b25f5
Merge branch '2.8'
nicolas-grekas Oct 23, 2015
3e923d0
Merge branch '2.8'
nicolas-grekas Oct 24, 2015
f863e6a
Fix merge
nicolas-grekas Oct 24, 2015
7177080
[Form] remove deprecated `options` and `type` from CollectionType
nicolas-grekas Oct 13, 2015
fa78eac
minor #16230 [Form] remove deprecated `options` and `type` from Colle…
Tobion Oct 25, 2015
d0acda8
Merge branch '2.8'
Tobion Oct 29, 2015
fc2eff8
Merge branch '2.8'
Tobion Oct 29, 2015
78512cc
remove polyfills for unsupported php versions
Tobion Oct 29, 2015
87d5589
[Serializer] JsonEncoder: remove deprecated method
TomasVotruba Oct 30, 2015
cd62d17
[Security] remove deprecated SrtingUtils class
TomasVotruba Oct 30, 2015
b286890
fix merge. the acl is not automatically included in symfony/symfony i…
Tobion Oct 30, 2015
fdd70c9
feature #16390 [3.0] [Serializer] JsonEncoder: remove deprecated meth…
Tobion Oct 30, 2015
87b62bb
feature #16392 [3.0] [Security] remove deprecated SrtingUtils class (…
Tobion Oct 30, 2015
8ecbab9
[Security] remove obsolete test for removed StringUtils
Tobion Oct 30, 2015
1db740e
feature #16381 remove polyfills for unsupported php versions (Tobion)
Tobion Oct 30, 2015
358fb2d
HtmlDumperTest fixed after merge
TomasVotruba Oct 30, 2015
5d4b5b4
PhpEngine: remove deprecated method
TomasVotruba Oct 30, 2015
bc0c8c1
Merge branch '2.8'
fabpot Oct 30, 2015
a42a872
minor #16396 [3.0] [VarDumper] Tests fixed (TomasVotruba)
Tobion Oct 31, 2015
d05023b
feature #16400 [3.0] [Templating] remove deprecated method (TomasVotr…
Tobion Oct 31, 2015
04eda70
Merge branch '2.8'
fabpot Nov 2, 2015
0f6e478
Merge branch '2.8'
nicolas-grekas Nov 3, 2015
3f0bb90
Merge branch '2.8'
nicolas-grekas Nov 3, 2015
bceb2d9
Merge branch '2.8'
nicolas-grekas Nov 4, 2015
d67feb4
Merge branch '2.8'
nicolas-grekas Nov 4, 2015
52c50e3
Remove abstract class and use Interface+Trait
blanchonvincent Nov 28, 2014
e337ce6
Remove deprecated ContainerAware class and make use of the trait in a…
Tobion Nov 1, 2015
24ff770
[TwigBundle] use ContainerAwareTrait in commands
Tobion Nov 4, 2015
2309901
[VarDumper] replace VarDumperTestCase by trait
Tobion Nov 4, 2015
f75a940
[VarDumper] fix filename
Tobion Nov 4, 2015
2c9a417
Stop faking versions in the root composer.json
nicolas-grekas Aug 2, 2015
697e6da
feature #16411 [3.0] use ContainerAwareTrait (blanchonvincent, Tobion)
nicolas-grekas Nov 5, 2015
e0146ed
minor #15432 Stop faking versions in the root composer.json (nicolas-…
nicolas-grekas Nov 5, 2015
4a177d7
Merge branch '2.8'
nicolas-grekas Nov 5, 2015
834218e
[Console] End of options (--) signal support
Seldaek Jul 20, 2014
4acfc3e
feature #11431 [Console] End of options (--) signal support (Seldaek)
fabpot Nov 5, 2015
53f4fd5
[FwB] Fix tests on Windows
nicolas-grekas Nov 5, 2015
479a42d
minor #16475 [FrameworkBundle] Fix tests on Windows (nicolas-grekas)
fabpot Nov 7, 2015
b1ad623
Merge branch '2.8'
nicolas-grekas Nov 9, 2015
f763cc3
Merge branch '2.8'
nicolas-grekas Nov 9, 2015
d33879a
Merge branch '2.8'
nicolas-grekas Nov 9, 2015
1c1c4e7
Merge branch '2.8'
nicolas-grekas Nov 9, 2015
4e98d89
Merge branch '2.8'
nicolas-grekas Nov 9, 2015
5aa4a3b
Remove some more legacy code
nicolas-grekas Nov 10, 2015
f37932c
feature #16516 Remove some more legacy code (nicolas-grekas)
fabpot Nov 10, 2015
779833b
Merge branch '2.8'
fabpot Nov 10, 2015
6f2782b
Revert removal of framework.csrf_protection section
wouterj Nov 10, 2015
e5928f7
bug #16521 [3.0] Revert removal of framework.csrf_protection section …
fabpot Nov 11, 2015
8191541
Merge branch '2.8'
Tobion Nov 12, 2015
803c8f1
updated CHANGELOG for 3.0.0-BETA1
fabpot Nov 16, 2015
d96ccf7
updated VERSION for 3.0.0-BETA1
fabpot Nov 16, 2015
bd54cb4
Merge pull request #16560 from fabpot/release-3.0.0-BETA1
fabpot Nov 16, 2015
9835236
bumped Symfony version to 3.0.0
fabpot Nov 16, 2015
2abbb8a
Merge branch '2.8'
nicolas-grekas Nov 18, 2015
dba51b4
Merge branch '2.8'
nicolas-grekas Nov 18, 2015
b06b93f
[HttpFoundation] Remove not existing class member
belka-ew Nov 20, 2015
4d2ea16
Merge branch '2.8'
nicolas-grekas Nov 20, 2015
4ffe14c
[HttpFoundation] Remove deprecated class method parameter
belka-ew Nov 23, 2015
06959c0
bug #16607 [HttpFoundation] Delete not existing session handler proxy…
fabpot Nov 23, 2015
45fe468
Merge branch '2.8'
fabpot Nov 23, 2015
42c9a48
Removed unneeded polyfill from the master
GrahamCampbell Nov 23, 2015
c6f2b65
feature #16637 [3.0] Removed unneeded polyfill (GrahamCampbell)
Tobion Nov 23, 2015
b859d95
Merge branch '2.8'
nicolas-grekas Nov 24, 2015
a862e5e
[Debug] remove unused use statement
Tobion Nov 25, 2015
cc26454
fix type assignement
rande Nov 20, 2015
cd0ffc9
bug #16615 fix type assignement (rande)
fabpot Nov 25, 2015
5183c88
Merge branch '2.8'
nicolas-grekas Nov 26, 2015
327a52d
Merge branch '2.8'
nicolas-grekas Nov 26, 2015
1ab7316
[DI] use try-finally for container
Tobion Nov 26, 2015
8988409
minor #16663 [Debug] remove unused use statement (Tobion)
fabpot Nov 26, 2015
c9fbff0
minor #16686 [DI] use try-finally for container (Tobion)
fabpot Nov 26, 2015
fc66283
[SecurityBundle] make ACL an optional dependency
Tobion Nov 26, 2015
d258ee8
feature #16694 [SecurityBundle] make ACL an optional dependency (Tobion)
fabpot Nov 26, 2015
0468f74
Merge branch '2.8'
fabpot Nov 27, 2015
9b9fa3d
Merge branch '2.8'
fabpot Nov 27, 2015
42a75bc
[Process] Remove PHP_BINARY existence check
ogizanagi Nov 27, 2015
aa4bc47
Merge branch '2.8'
nicolas-grekas Nov 27, 2015
4603e64
feature #16629 [HttpFoundation] Remove deprecated class method parame…
nicolas-grekas Nov 27, 2015
743e670
Merge branch '2.8'
nicolas-grekas Nov 27, 2015
ba3afdb
Merge branch '2.8'
nicolas-grekas Nov 28, 2015
380ce60
Merge branch '2.8'
nicolas-grekas Nov 28, 2015
5bc34d2
[Form] Drop remaing CsrfProviderAdapter/Interface mentions
nicolas-grekas Nov 26, 2015
ed0e26a
[Form] Remove choices_as_values option on ChoiceType
nicolas-grekas Nov 27, 2015
812396d
[Security] remove deprecated HTTP digest auth key
xabbuh Nov 28, 2015
0108cd4
remove unused abstract test classes
xabbuh Nov 28, 2015
c4501c5
feature #16719 [Security] remove deprecated HTTP digest auth key (xa…
fabpot Nov 28, 2015
2a22d86
minor #16721 [DoctrineBridge] remove unused abstract test classes (xa…
fabpot Nov 28, 2015
26c17f6
feature #16692 [Form] Drop remaing CsrfProviderAdapter/Interface ment…
fabpot Nov 28, 2015
8334952
feature #16715 [Form] Remove choices_as_values option on ChoiceType (…
fabpot Nov 28, 2015
7ba5f7a
Merge branch '2.8'
fabpot Nov 28, 2015
d834cd3
Added getBlockPrefix to FormTypeInterface
wouterj Nov 28, 2015
8add405
[Form] Removed useless code
webmozart Nov 28, 2015
c2b54bb
Merge branch '2.8'
nicolas-grekas Nov 28, 2015
b5b1d50
minor #16707 [Process] Remove PHP_BINARY existence check (ogizanagi)
fabpot Nov 28, 2015
4a2aea0
[Form] remove deprecated getTimezones() method
xabbuh Nov 28, 2015
4e1effe
feature #16727 [Form] remove deprecated getTimezones() method (xabbuh)
fabpot Nov 28, 2015
f2ee561
feature #16724 [3.0] Added getBlockPrefix to FormTypeInterface (WouterJ)
fabpot Nov 28, 2015
6e6ac49
Merge branch '2.8'
fabpot Nov 28, 2015
d641fc5
[Form] remove deprecated CSRF options
xabbuh Nov 28, 2015
445bdad
feature #16725 [Form] Removed useless code (webmozart)
Tobion Nov 28, 2015
07ac122
feature #16723 [Form] remove deprecated CSRF options (xabbuh)
Tobion Nov 28, 2015
fa9fd26
[Form] removed unused base test case
xabbuh Oct 28, 2015
2cb7498
minor #16728 [Form] removed unused base test case (xabbuh)
nicolas-grekas Nov 28, 2015
a3f48a5
[Bridge/Twig] Fix legacy test
nicolas-grekas Nov 28, 2015
9952ef9
Merge branch '2.8'
nicolas-grekas Nov 29, 2015
ab2044f
Merge branch '2.8'
nicolas-grekas Nov 29, 2015
7e89345
[Form] Added getBlockPrefix() to ResolvedFormTypeInterface
webmozart Nov 29, 2015
bcfacac
minor #16749 [Form] Added getBlockPrefix() to ResolvedFormTypeInterfa…
Tobion Nov 29, 2015
a23444a
Merge branch '2.8'
fabpot Nov 30, 2015
9054bdf
allow arbitrary types in VoterInterface::vote()
xabbuh Nov 30, 2015
70f7b1c
feature #16754 [Security] allow arbitrary types in VoterInterface::vo…
fabpot Nov 30, 2015
f20f2f0
Merge branch '2.8'
fabpot Nov 30, 2015
fdb419e
Merge branch '2.8'
nicolas-grekas Nov 30, 2015
1ea281f
Merge branch '2.8'
nicolas-grekas Nov 30, 2015
ee739ae
fixed EOM/EOL dates
fabpot Nov 30, 2015
2e3f1cc
Merge branch '2.8'
fabpot Nov 30, 2015
af74da5
updated CHANGELOG for 3.0.0
fabpot Nov 30, 2015
a882401
updated CHANGELOG for 3.0.0
fabpot Nov 30, 2015
72c6b83
updated VERSION for 3.0.0
fabpot Nov 30, 2015
eb2a4f5
Merge pull request #16766 from fabpot/release-3.0.0
fabpot Nov 30, 2015
7b8865b
bumped Symfony version to 3.0.1
fabpot Nov 30, 2015
582f475
updated version to 3.1
fabpot Nov 30, 2015
e80e5dc
[DomCrawler] add upgrade hint on interface changes
havvg Dec 1, 2015
d9393d8
Reapply the Yaml bugfix of #16745
stof Dec 1, 2015
1552a70
bug #16788 Reapply the Yaml bugfix of #16745 (stof)
stof Dec 2, 2015
bc20af2
[Config] Throw an exception when using cannotBeEmpty() on numeric or …
GuilhemN Dec 2, 2015
32d5c78
bug #16816 [Config] Throw an exception when using cannotBeEmpty() wit…
stof Dec 5, 2015
77b1ab2
minor #16774 [DomCrawler] add upgrade hint on interface changes (havvg)
stof Dec 5, 2015
b297a0c
[Form] document changes to form type interfaces
xabbuh Nov 30, 2015
39ed359
minor #16752 [Form] document changes to form type interfaces (xabbuh)
stof Dec 5, 2015
e0eb6d4
Merge branch '2.8' into 3.0
stof Dec 5, 2015
115b745
Merge branch '3.0'
stof Dec 5, 2015
d553264
Merge branch '2.8' into 3.0
stof Dec 5, 2015
d859e0e
Merge branch '3.0'
stof Dec 5, 2015
05aff6a
Merge branch '2.8' into 3.0
stof Dec 5, 2015
c3b60a9
Merge branch '3.0'
stof Dec 5, 2015
99884c7
Merge branch '2.8' into 3.0
nicolas-grekas Dec 6, 2015
b1c774f
simplify debug error_reporting levels given php version > 5.3
Tobion Dec 9, 2015
c1bfa46
Merge branch '2.8' into 3.0
nicolas-grekas Dec 10, 2015
45e26ca
Merge branch '3.0'
nicolas-grekas Dec 10, 2015
8a2c757
return ajax collector to collectors.php
NothingWeAre Dec 10, 2015
bb1c6f6
bug #16953 return ajax collector to collectors.php (NothingWeAre)
stof Dec 10, 2015
7528134
Removed ESI instance check
voronkovich Dec 11, 2015
605e133
bug #16970 [HttpKernel] HttpCache: remove an ESI instance checking (v…
Tobion Dec 12, 2015
ac15454
[FrameworkBundle][HttpKernel] Remove remaining $triggerDeprecation flag
ogizanagi Dec 13, 2015
be381af
minor #16992 [FrameworkBundle][HttpKernel] Remove remaining $triggerD…
Tobion Dec 13, 2015
9aa5507
[Form] Deprecate the "choices_as_values" option of ChoiceType
nicolas-grekas Dec 13, 2015
06dd574
Merge branch '2.8' into 3.0
Tobion Dec 15, 2015
e612b92
Merge branch '3.0'
Tobion Dec 15, 2015
3d0c4dd
[FrameworkBundle] fixes outdated phpdoc on Controller::createForm() m…
Dec 16, 2015
2a99121
feature #16994 [Form] Deprecate the "choices_as_values" option of Cho…
nicolas-grekas Dec 18, 2015
a6c0025
minor #17033 [FrameworkBundle] fixes outdated phpdoc on Controller::c…
nicolas-grekas Dec 18, 2015
f6f8819
Merge branch '2.8' into 3.0
nicolas-grekas Dec 18, 2015
28e0f7b
Merge branch '3.0'
nicolas-grekas Dec 18, 2015
1ccdf66
minor #16916 [Debug] simplify error_reporting levels given php versio…
fabpot Dec 18, 2015
f9ba2cd
Merge branch '2.8' into 3.0
nicolas-grekas Dec 18, 2015
1509ec9
Merge branch '3.0'
nicolas-grekas Dec 18, 2015
284448c
Fix constraint validator alias being required
Dec 5, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Form] removed precision option
  • Loading branch information
fabpot committed Oct 1, 2015
commit bfba6caebfc1211af785b08046e6f33c4916a5cc
12 changes: 1 addition & 11 deletions src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
*/
public function configureOptions(OptionsResolver $resolver)
{
$scale = function (Options $options) {
if (null !== $options['precision']) {
@trigger_error('The form option "precision" is deprecated since version 2.7 and will be removed in 3.0. Use "scale" instead.', E_USER_DEPRECATED);
}

return $options['precision'];
};

$resolver->setDefaults(array(
// deprecated as of Symfony 2.7, to be removed in Symfony 3.0.
'precision' => null,
// default scale is locale specific (usually around 3)
'scale' => $scale,
'scale' => null,
'grouping' => false,
// Integer cast rounds towards 0, so do the same when displaying fractions
'rounding_mode' => IntegerToLocalizedStringTransformer::ROUND_DOWN,
Expand Down
14 changes: 1 addition & 13 deletions src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,8 @@ public function buildView(FormView $view, FormInterface $form, array $options)
*/
public function configureOptions(OptionsResolver $resolver)
{
$scale = function (Options $options) {
if (null !== $options['precision']) {
@trigger_error('The form option "precision" is deprecated since version 2.7 and will be removed in 3.0. Use "scale" instead.', E_USER_DEPRECATED);

return $options['precision'];
}

return 2;
};

$resolver->setDefaults(array(
// deprecated as of Symfony 2.7, to be removed in Symfony 3.0
'precision' => null,
'scale' => $scale,
'scale' => 2,
'grouping' => false,
'divisor' => 1,
'currency' => 'EUR',
Expand Down
12 changes: 1 addition & 11 deletions src/Symfony/Component/Form/Extension/Core/Type/NumberType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
*/
public function configureOptions(OptionsResolver $resolver)
{
$scale = function (Options $options) {
if (null !== $options['precision']) {
@trigger_error('The form option "precision" is deprecated since version 2.7 and will be removed in 3.0. Use "scale" instead.', E_USER_DEPRECATED);
}

return $options['precision'];
};

$resolver->setDefaults(array(
// deprecated as of Symfony 2.7, to be removed in Symfony 3.0
'precision' => null,
// default scale is locale specific (usually around 3)
'scale' => $scale,
'scale' => null,
'grouping' => false,
'rounding_mode' => NumberToLocalizedStringTransformer::ROUND_HALF_UP,
'compound' => false,
Expand Down
14 changes: 1 addition & 13 deletions src/Symfony/Component/Form/Extension/Core/Type/PercentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
*/
public function configureOptions(OptionsResolver $resolver)
{
$scale = function (Options $options) {
if (null !== $options['precision']) {
@trigger_error('The form option "precision" is deprecated since version 2.7 and will be removed in 3.0. Use "scale" instead.', E_USER_DEPRECATED);

return $options['precision'];
}

return 0;
};

$resolver->setDefaults(array(
// deprecated as of Symfony 2.7, to be removed in Symfony 3.0.
'precision' => null,
'scale' => $scale,
'scale' => 0,
'type' => 'fractional',
'compound' => false,
));
Expand Down