8000 2.6 AbstractType using deprecated OptionsResolverInterface by T-Philipp · Pull Request #10 · symfony/form · GitHub
[go: up one dir, main page]

Skip to content

2.6 AbstractType using deprecated OptionsResolverInterface #10

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
wants to merge 801 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
801 commits
Select commit Hold shift + click to select a range
be90255
Merge branch '2.5'
webmozart Aug 14, 2014
fc260be
[Form] Fixed ValidatorExtension to work with the 2.5 Validation API
webmozart Aug 8, 2014
27128fb
Merge branch '2.5'
nicolas-grekas Aug 18, 2014
d79424b
Fixed #11675 ValueToDuplicatesTransformer accept "0" value
Nek- Aug 15, 2014
d630648
[Validator] deprecate member metadata accessors in favor of existing …
Tobion Aug 19, 2014
da14fe3
[Form] FormBuilder::getIterator() now deals with resolved children
issei-m Aug 20, 2014
9476b99
[Validator] add getConstraints to MetadataInterface
Tobion Aug 20, 2014
6a292a1
Merge branch '2.3' into 2.4
fabpot Aug 26, 2014
ca88d1f
Merge branch '2.4' into 2.5
fabpot Aug 26, 2014
e85de74
Merge branch '2.5'
fabpot Aug 26, 2014
5752b18
feature #11703 [Validator] deprecate member metadata accessors (Tobion)
fabpot Aug 31, 2014
1ca0ec5
bug #11459 [Form][Validator] All index items after children are to be…
webmozart Sep 15, 2014
88c9ede
[Form] Fix PHPDoc for builder setData methods The underlying data var…
MisatoTremor Sep 16, 2014
5856f0c
Merge branch '2.3' into 2.4
fabpot Sep 17, 2014
7d775b7
Merge branch '2.4' into 2.5
fabpot Sep 17, 2014
5e6b512
Merge branch '2.5'
fabpot Sep 17, 2014
ed8fb22
fixed CS
fabpot Sep 21, 2014
60b0078
Merge branch '2.3' into 2.4
fabpot Sep 22, 2014
ac14d48
Merge branch '2.4' into 2.5
fabpot Sep 22, 2014
2befcaf
Merge branch '2.5'
fabpot Sep 22, 2014
6ce42ef
[2.3] Add missing development dependencies
romainneutron Jul 6, 2014
32c6da9
minor #11340 [2.3] Add missing development dependencies (romainneutron)
fabpot Sep 22, 2014
53d0a7c
Merge branch '2.3' into 2.4
fabpot Sep 22, 2014
d5f8d2e
Merge branch '2.4' into 2.5 8000
fabpot Sep 22, 2014
babaf1f
Merge branch '2.5'
fabpot Sep 22, 2014
88d506e
feature #8291 [Form] Add allow_html5 option to date and time FormType…
fabpot Sep 23, 2014
ed2de54
fixed CS
fabpot Sep 23, 2014
e624116
[Form] Changed "allow_html5" to "html5"
webmozart Sep 23, 2014
550f89f
[Form] Add a form error if post_max_size has been reached.
rpg600 Sep 8, 2014
e13ff44
[Form] Moved POST_MAX_SIZE validation from FormValidator to request h…
webmozart Sep 15, 2014
96266d5
[Form] Renamed the option "empty_value" to "placeholder"
webmozart Sep 23, 2014
4ba90e5
[Form] Fixed ValidatorTypeGuesser to guess properties without constra…
webmozart Feb 27, 2013
c2715dc
bug #12004 [Form] Fixed ValidatorTypeGuesser to guess properties with…
fabpot Sep 24, 2014
abc6a22
Merge branch '2.3' into 2.4
fabpot Sep 25, 2014
156991d
[Validator] Simplified testing of violations
webmozart Sep 24, 2014
1739ab4
[Form] Removed constructor argument from FormTypeHttpFoundationExtens…
webmozart Sep 25, 2014
5e45d42
minor #12015 [Validator] Simplified testing of violations (webmozart)
fabpot Sep 25, 2014
6c244ed
Merge branch '2.3' into 2.4
fabpot Sep 25, 2014
4da9318
Merge branch '2.4' into 2.5
webmozart Sep 25, 2014
88bb562
Merge branch '2.5'
webmozart Sep 25, 2014
108042f
[Validator] Added ConstraintValidator::buildViolation() helper for BC…
webmozart Sep 24, 2014
8ec7690
feature #9033 [Form] Choice children can be template customized like …
webmozart Sep 25, 2014
584a850
[Form][DateTime] Propagate invalid_message & invalid_message paramete…
GeLoLabs Nov 6, 2013
ae62a22
Merge branch '2.5'
webmozart Sep 25, 2014
07f4556
[Form] Added "label_format" option
webmozart Sep 26, 2014
aff400c
[Intl] Integrated ICU data into Intl component
webmozart Sep 15, 2014
54b660c
Merge branch '2.3' into 2.4
fabpot Sep 27, 2014
9aceb09
Merge branch '2.4' into 2.5
fabpot Sep 27, 2014
41d4fa4
Merge branch '2.5'
fabpot Sep 27, 2014
62c4147
fixed some composer.json to make standalone component tests pass
fabpot Sep 27, 2014
413e4e9
Merge branch '2.4' into 2.5
fabpot Sep 28, 2014
428d74a
Merge branch '2.5'
fabpot Sep 28, 2014
916ed4f
[Form] The trace of form errors is now displayed in the profiler
webmozart Sep 26, 2014
28708bd
[Validator] Added error codes to all constraints with multiple error …
webmozart Sep 24, 2014
fe4784a
feature #12050 [Form] Added "label_format" option (webmozart)
webmozart Sep 30, 2014
46748fe
Merge branch '2.3' into 2.5
fabpot Oct 1, 2014
4cfd0b5
Merge branch '2.5'
fabpot Oct 1, 2014
d251ab1
[Form] remove unnecessary call
Tobion Oct 5, 2014
ea0661d
Merge branch '2.3' into 2.5
fabpot Oct 5, 2014
2dbf5fe
Merge branch '2.5'
fabpot Oct 5, 2014
a1cefc9
[Form] fix form handling with unconventional request methods like OPT…
Tobion Oct 7, 2014
fb89907
[Form] Fix #11694 - Enforce options value type check in some form types
kix Aug 18, 2014
2c6919c
[Form] no need to add the url listener when it does not do anything
Tobion Oct 16, 2014
048d35a
Merge branch '2.3' into 2.5
fabpot Oct 24, 2014
440483f
Merge branch '2.5'
fabpot Oct 24, 2014
98acb93
Remove aligned '=>' and '=' 8000
polc Oct 22, 2014
44c647e
Merge branch '2.3' into 2.5
fabpot Oct 26, 2014
baec044
Merge branch '2.5'
fabpot Oct 26, 2014
14fe597
bug #12170 [Form] fix form handling with OPTIONS request method (Tobion)
fabpot Nov 2, 2014
3e74bf3
Merge branch '2.3' into 2.5
fabpot Nov 3, 2014
48504d9
Merge branch '2.5'
fabpot Nov 3, 2014
2d45368
[Translations] Added missing Hebrew language trans-unit sources
Nov 11, 2014
9b18097
Add machine readable events
dawehner Oct 23, 2014
c6581f3
Merge branch '2.3' into 2.5
fabpot Nov 16, 2014
2c43d24
Merge branch '2.5' into 2.6
fabpot Nov 16, 2014
d414d28
Drop support for model_timezone and view_timezone options in TimeType…
jakzal Nov 2, 2014
11edd97
*_timezone changes also affect the BirthdayType
xabbuh Nov 16, 2014
5c8131c
[Form] Add doc for FormEvents
GromNaN Nov 17, 2014
cfaf3be
compare version using PHP_VERSION_ID
xabbuh Nov 17, 2014
a4fd4f7
Azerbaijani locale
seferov Nov 13, 2014
2845575
minor #12496 [Form] Add doc for FormEvents (GromNaN)
fabpot Nov 19, 2014
643e2af
Merge branch '2.3' into 2.5
fabpot Nov 20, 2014
25020e7
Merge branch '2.5' into 2.6
fabpot Nov 20, 2014
69c7062
Rename Symfony2 to Symfony
romainneutron Nov 24, 2014
9946fc5
Merge branch '2.3' into 2.5
fabpot Nov 28, 2014
abe58ca
Merge branch '2.5' into 2.6
fabpot Nov 28, 2014
f807a1b
Fix incorrect spanish translation
Nov 29, 2014
7db37bb
Docblock fixes
GrahamCampbell Nov 30, 2014
bf85329
PSR-2 fixes
GrahamCampbell Dec 2, 2014
3d8030d
Merge branch '2.3' into 2.5
fabpot Dec 2, 2014
2436592
Merge branch '2.5' into 2.6
fabpot Dec 2, 2014
562f74c
CS fixes
GrahamCampbell Dec 3, 2014
c0250a3
[2.3] More cs fixes
GrahamCampbell Dec 3, 2014
a0d0699
[Form] Add further timezone tests for date type
McSimp Dec 4, 2014
8f5481a
Merge branch '2.3' into 2.5
fabpot Dec 4, 2014
823900e
CS fixes
GrahamCampbell Dec 4, 2014
645504e
Merge branch '2.5' into 2.6
fabpot Dec 5, 2014
883f5bb
fix phpdoc's alignment
keradus Dec 7, 2014
f1ef8e0
Fix wrong DateTransformer timezone param for non-UTC configuration. #…
soullivaneuh Dec 9, 2014
b0cc5c0
[Form] fixed a maxlength overring on a guessing
origaminal Nov 23, 2014
48c5cbb
bug #12548 [Form] fixed a maxlength overring on a guessing (origaminal)
fabpot Dec 12, 2014
79407e5
Merge branch '2.5' into 2.6
nicolas-grekas Dec 12, 2014
e1c5762
Test components using their lowest possible deps
nicolas-grekas Dec 13, 2014
a6a517c
Merge remote-tracking branch 'symfony/2.3' into lowest-25
nicolas-grekas Dec 15, 2014
fe4366f
Test lowest versions of dependencies
nicolas-grekas Dec 15, 2014
39ccf1c
Merge remote-tracking branch 'symfony/2.5' into lowest-26
nicolas-grekas Dec 16, 2014
f959a87
[2.6] Test lowest versions of dependencies
nicolas-grekas Dec 16, 2014
a3fb398
[Tests] Silenced all deprecations in tests for 2.3
saro0h Dec 18, 2014
885338b
Merge branch '2.3' into 2.5
fabpot Dec 20, 2014
ff1ed48
Merge branch '2.5' into 2.6
fabpot Dec 20, 2014
c6e761a
[2.3] CS And DocBlock Fixes
GrahamCampbell Dec 21, 2014
a0b898b
Merge branch '2.3' into 2.5
fabpot Dec 22, 2014
499f082
Merge branch '2.5' into 2.6
fabpot Dec 22, 2014
4a18add
fix #10054 - form data collector with dynamic fields
zulus Dec 18, 2014
1ad9a4c
No global state for isolated tests and other fixes
nicolas-grekas Dec 29, 2014
60adeb3
Merge branch '2.3' into 2.5
fabpot Dec 29, 2014
7f5a5d7
bug #12911 Fix wrong DateTransformer timezone param for non-UTC confi…
fabpot Dec 29, 2014
af143ed
minor #12843 [Form] Add further timezone tests for date type (McSimp)
fabpot Dec 29, 2014
6c90277
fix regression in form tests after pr #13027 | Q | A | --…
zulus Dec 29, 2014
0942268
Remove usages of deprecated constants
stof Dec 29, 2014
35f3bf9
Replace usages of the deprecated TypeTestCase by the new one
stof Dec 29, 2014
fea34f6
Fix phpdoc and coding standards
stof Dec 29, 2014
78bf4da
minor #13161 Remove usages of deprecated constants (stof)
fabpot Dec 30, 2014
0d3a272
minor #13162 Fix phpdoc and coding standards (stof)
fabpot Dec 30, 2014
dcc142b
Merge branch '2.3' into 2.5
fabpot Dec 30, 2014
36989d3
Merge branch '2.5' into 2.6
fabpot Dec 30, 2014
34c9517
fixed unit tests
fabpot Dec 30, 2014
01423f7
Merge branch '2.5' into 2.6
fabpot Dec 30, 2014
79af0f3
[Form] Set a child type to text if added to the form without a type.
jakzal Dec 30, 2014
5ef2456
[Form] Remove a redundant test.
jakzal Dec 30, 2014
c9c52f9
Merge branch '2.3' into 2.5
fabpot Dec 30, 2014
57152de
Merge branch '2.5' into 2.6
fabpot Dec 30, 2014
8affd4e
Clarify a comment.
jakzal Dec 30, 2014
d1aa833
Updated copyright to 2015
saro0h Jan 1, 2015
300ecf4
Fixes various phpdoc and coding standards.
Dec 21, 2014
be317fa
Merge branch '2.3' into 2.5
fabpot Jan 3, 2015
49d0d05
Merge branch '2.5' into 2.6
fabpot Jan 3, 2015
b430298
[2.3] Cleanup deprecations
nicolas-grekas Jan 2, 2015
16085b7
[2.3] Remove useless tests skips
nicolas-grekas Jan 3, 2015
9e31562
Merge branch '2.3' into 2.5
nicolas-grekas Jan 3, 2015
562a35e
Merge branch '2.5' into 2.6
nicolas-grekas Jan 3, 2015
39fcd96
add back model_timezone and view_timezone options
xabbuh Jan 4, 2015
a677bc9
[2.5] cleanup deprecated uses
nicolas-grekas Jan 4, 2015
ae7ee93
[2.6] cleanup deprecated uses
nicolas-grekas Jan 4, 2015
e024924
Merge branch '2.5' into 2.6
fabpot Jan 5, 2015
b1657d2
[Form] fix Context\ExecutionContextInterface mock
nicolas-grekas Jan 5, 2015
f5a21e8
Merge branch '2.5' into 2.6
fabpot Jan 5, 2015
8635a65
Removed unneeded version requirements
peterrehm Jan 7, 2015
98cebda
feature #13241 [Form] add back model_timezone and view_timezone optio…
fabpot Jan 7, 2015
bfe4011
Merge branch '2.5' into 2.6
fabpot Jan 7, 2015
7e4d6ff
[Form] fixed the CSRF extension to allow using only the new in 8000 terfaces
fabpot Jan 8, 2015
daebf64
Merge branch '2.5' into 2.6
fabpot Jan 8, 2015
5fba818
[Form] Fixed check of violation constraint #12792
xelaris Jan 9, 2015
30f65c7
bug #13170 [Form] Set a child type to text if added to the form witho…
fabpot Jan 9, 2015
e8094f4
Merge branch '2.3' into 2.5
fabpot Jan 9, 2015
8336ba8
Merge branch '2.5' into 2.6
fabpot Jan 9, 2015
66834df
[Form] Improved exception message if the data class is not found
fabpot Jan 16, 2015
7f3d2ed
Merge branch '2.3' into 2.5
fabpot Jan 20, 2015
c32c775
Merge branch '2.5' into 2.6
fabpot Jan 20, 2015
67effa6
[Form] fixed form tests when using 2.7 deps
fabpot Jan 25, 2015
4158baa
minor #13515 [Form] fixed form tests when using 2.7 deps (fabpot)
fabpot Jan 25, 2015
199f994
[Validator] fix DOS-style line endings
nicolas-grekas Feb 3, 2015
6bc6173
[2.7] [Form] Replaced calls to array_search() by in_array() where is …
phansys Jan 30, 2015
8aec0c2
Merge branch '2.3' into 2.5
fabpot Feb 5, 2015
3059dfe
Merge branch '2.5' into 2.6
fabpot Feb 5, 2015
c03f1d7
Add reference to documentation in FormEvents phpdocs
ifdattic Nov 29, 2014
033d5b8
minor #12626 Add reference to documentation in FormEvents phpdocs (if…
fabpot Feb 5, 2015
b39f692
fixed URL
fabpot Feb 5, 2015
ff06705
renamed composer.phar to composer to be consistent with the Symfony docs
fabpot Feb 8, 2015
438e162
[FrameworkBundle] Fix title and placeholder rendering in php form tem…
jakzal Feb 10, 2015
8864432
Merge branch '2.3' into 2.6
fabpot Feb 11, 2015
6da08d3
Small syntax fix
wouterj Feb 17, 2015
2c5d36c
[2.3] require-dev PHPUnit bridge
nicolas-grekas Feb 24, 2015
14e65ed
Merge branch '2.3' into 2.6
nicolas-grekas Feb 24, 2015
fe05c61
[Form] NativeRequestHandler file handling fix
mpajunen Feb 23, 2015
8d867ec
bug #13769 [Form] NativeRequestHandler file handling fix (mpajunen)
fabpot Feb 25, 2015
dfdaffd
Merge branch '2.3' into 2.6
nicolas-grekas Feb 25, 2015
ad14964
CS fixes
keradus Feb 18, 2015
4c01bf3
[2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [H…
kalessil Mar 6, 2015
637a957
minor #13862 [2.3] [Config] [Console] [DependencyInjection] [DomCrawl…
fabpot Mar 7, 2015
160e064
Merge branch '2.3' into 2.6
fabpot Mar 7, 2015
ae3065f
Php Inspections (EA Extended) - static code analysis includes:
kalessil Mar 7, 2015
4ad1bd0
Merge branch '2.3' into 2.6
nicolas-grekas Mar 12, 2015
8567c4b
Changed visibility of setUp() and tearDown to protected
saro0h Mar 11, 2015
fb85752
[2.3] add @group legacy
nicolas-grekas Mar 13, 2015
5aa786d
Merge branch '2.3' into 2.6
nicolas-grekas Mar 13, 2015
e222853
[2.6] add @group legacy
nicolas-grekas Mar 13, 2015
3c962f6
CS: Convert double quotes to single quotes
keradus Mar 21, 2015
f64a180
[Form] fixed phpdoc
issei-m Mar 20, 2015
81d81e7
[2.3] Static Code Analysis for Components
kalessil Mar 20, 2015
6ab455a
minor #13995 [2.3] Static Code Analysis for Components (kalessil)
fabpot Mar 21, 2015
ea461af
minor #14005 CS: Convert double quotes to single quotes (keradus)
fabpot Mar 22, 2015
5cd574f
Merge branch '2.3' into 2.6
fabpot Mar 22, 20 8000 15
63a4f33
CS: Ensure there is no code on the same line as the PHP open tag and …
keradus Mar 24, 2015
371c467
CS: fix some license headers
keradus Mar 24, 2015
7699f2a
minor #14038 CS: fix some license headers (keradus)
fabpot Mar 24, 2015
3d46f57
Merge branch '2.3' into 2.6
fabpot Mar 24, 2015
49a33aa
[Form] [TwigBridge] Bootstrap layout whitespace control
mvar Dec 11, 2014
d701757
Translator component has default domain for null implemented no need …
Tobion Mar 24, 2015
dfc5e71
CS: fixes
keradus Mar 26, 2015
38da9b8
Merge branch '2.3' into 2.6
fabpot Mar 27, 2015
301d6b1
remove useless tests that fail in php 7
Tobion Mar 27, 2015
eb734af
CS: Unary operators should be placed adjacent to their operands
keradus Mar 27, 2015
931d3db
minor #14090 CS: Unary operators should be placed adjacent to their o…
fabpot Mar 30, 2015
5386477
Merge branch '2.3' into 2.6
fabpot Mar 30, 2015
73ec9a6
[Form] Fixed DateType/TimeType that were broken since 849fb2998485639…
webmozart Apr 7, 2015
50da8dc
[2.6] Fix @link annotations
nicolas-grekas Apr 10, 2015
550479e
[2.3] Fix @link annotations
nicolas-grekas Apr 10, 2015
1f1d8da
Merge branch '2.3' into 2.6
fabpot Apr 11, 2015
ad29500
[2.3] Static Code Analysis for Components
kalessil Apr 9, 2015
b60f14e
minor #14097 [2.3] Static Code Analysis for Components (kalessil)
fabpot Apr 15, 2015
d3a7d1d
Merge branch '2.3' into 2.6
nicolas-grekas Apr 18, 2015
9cd323e
link to https://symfony.com where possible
xabbuh May 1, 2015
e369146
Merge branch '2.3' into 2.6
fabpot May 2, 2015
aa6ac87
Fix getOrigin
wouterj May 3, 2015
43979f7
Fixed compatibility with PHP7 and up by introducing new constraints (…
stefanruijsenaars Apr 5, 2015
192aadb
minor #14228 Add PHP7 compatible versions for the Null/True/False con…
stof May 15, 2015
5ad241f
Merge branch '2.3' into 2.6
nicolas-grekas May 15, 2015
c70882b
[Form] Test for space in AbstractBootstrap3LayoutTest::testErrors
nicolas-grekas May 15, 2015
69d4267
bug #14644 [Bridge\Twig] Adding a space between the icon and the erro…
fabpot May 15, 2015
bb35442
Check instance of FormBuilderInterface instead of FormBuilder
dosten May 21, 2015
749ef2f
Merge branch '2.3' into 2.6
fabpot May 22, 2015
2a92464
Php Inspections (EA Extended): - resolved possible PHP Fatal in \…
kalessil May 29, 2015
5ec7892
Merge branch '2.3' into 2.6
fabpot Jun 4, 2015
d460bd6
[Form] Fix call to removed method (BC broken in 2.3)
taueres Jun 6, 2015
800ea00
without this change allways the legacy code get called
Jun 6, 2015
eac6996
[Form] add test to avoid regression of #14891
xabbuh Jun 7, 2015
be61b7b
minor #14901 [Form] add test to avoid regression of #14891 (xabbuh)
fabpot Jun 7, 2015
3d4f32e
[Form] Support DateTimeImmutable in transform()
c960657 Jun 6, 2015
f64db84
bug #14895 [Form] Support DateTimeImmutable in transform() (c960657)
fabpot Jun 8, 2015
3e22e76
Merge branch '2.3' into 2.6
fabpot Jun 9, 2015
63b07db
[2.3] Static Code Analysis for Components
kalessil Jun 21, 2015
a4d6497
[Form] Fixed: remove quoted strings from Intl date formats (e.g. es_E…
webmozart Jun 22, 2015
e6f15ec
[Form] Fixed: Data mappers always receive forms indexed by their names
webmozart Jun 22, 2015
06acaea
Merge branch '2.3' into 2.6
nicolas-grekas Jun 25, 2015
261138b
[Form] [EventListener] fixed sending non array data on submit to Resi…
BruceWouaigne Mar 5, 2015
4a72cca
[Translation][Form][choice] empty_value shouldn't be translated when …
Restless-ET Jun 16, 2015
7711ea9
Merge branch '2.3' into 2.6
Tobion Jun 27, 2015
8e4f4ee
bug #15069 [Form] Fixed: Data mappers always receive forms indexed by…
fabpot Jun 30, 2015
4b3dcca
Towards 100% HHVM compat
nicolas-grekas Jun 30, 2015
1d9cdbb
bug #15146 Towards 100% HHVM compat (nicolas-grekas)
fabpot Jun 30, 2015
9aa5bd8
Merge branch '2.3' into 2.6
nicolas-grekas Jun 30, 2015
4050d4b
Update DateTimeToArrayTransformer.php
zhil Jul 1, 2015
b470687
Merge branch '2.3' into 2.6
nicolas-grekas Jul 1, 2015
fd290b6
fix CS
keradus Jul 5, 2015
5eec91a
Merge branch '2.3' into 2.6
fabpot Jul 9, 2015
8adfffa
Remove excess whitespace
aivus Jul 9, 2015
7e6d577
Merge branch '2.3' into 2.6
fabpot Jul 13, 2015
b691114
[Form] updated exception message of ButtonBuilder::setRequestHandler()
issei-m Jul 21, 2015
acb7cfa
Merge branch '2.3' into 2.6
nicolas-grekas Jul 22, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/
composer.lock
phpunit.xml
27 changes: 15 additions & 12 deletions AbstractExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Form;

use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\InvalidArgumentException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;

/**
Expand All @@ -20,26 +20,30 @@
abstract class AbstractExtension implements FormExtensionInterface
{
/**
* The types provided by this extension
* @var array An array of FormTypeInterface
* The types provided by this extension.
*
* @var FormTypeInterface[] An array of FormTypeInterface
*/
private $types;

/**
* The type extensions provided by this extension
* @var array An array of FormTypeExtensionInterface
* The type extensions provided by this extension.
*
* @var FormTypeExtensionInterface[] An array of FormTypeExtensionInterface
*/
private $typeExtensions;

/**
* The type guesser provided by this extension
* The type guesser provided by this extension.
*
* @var FormTypeGuesserInterface
*/
private $typeGuesser;

/**
* Whether the type guesser has been loaded
* @var Boolean
* Whether the type guesser has been loaded.
*
* @var bool
*/
private $typeGuesserLoaded = false;

Expand All @@ -53,7 +57,7 @@ public function getType($name)
}

if (!isset($this->types[$name])) {
throw new FormException(sprintf('The type "%s" can not be loaded by this extension', $name));
throw new InvalidArgumentException(sprintf('The type "%s" can not be loaded by this extension', $name));
}

return $this->types[$name];
Expand Down Expand Up @@ -112,7 +116,7 @@ public function getTypeGuesser()
/**
* Registers the types.
*
* @return array An array of FormTypeInterface instances
* @return FormTypeInterface[] An array of FormTypeInterface instances
*/
protected function loadTypes()
{
Expand All @@ -122,7 +126,7 @@ protected function loadTypes()
/**
* Registers the type extensions.
*
* @return array An array of FormTypeExtensionInterface instances
* @return FormTypeExtensionInterface[] An array of FormTypeExtensionInterface instances
*/
protected function loadTypeExtensions()
{
Expand All @@ -136,7 +140,6 @@ protected function loadTypeExtensions()
*/
protected function loadTypeGuesser()
{
return null;
}

/**
Expand Down
9 changes: 4 additions & 5 deletions AbstractRendererEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function setTheme(FormView $view, $themes)
// Unset instead of resetting to an empty array, in order to allow
// implementations (like TwigRendererEngine) to check whether $cacheKey
// is set at all.
unset($this->resources[$cacheKey]);
unset($this->resourceHierarchyLevels[$cacheKey]);
unset($this->resources[$cacheKey], $this->resourceHierarchyLevels[$cacheKey]);
}

/**
Expand Down Expand Up @@ -131,7 +130,7 @@ public function getResourceHierarchyLevel(FormView $view, array $blockNameHierar
* @param FormView $view The form view for finding the applying themes.
* @param string $blockName The name of the block to load.
*
* @return Boolean True if the resource could be loaded, false otherwise.
* @return bool True if the resource could be loaded, false otherwise.
*/
abstract protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName);

Expand All @@ -146,10 +145,10 @@ abstract protected function loadResourceForBlockName($cacheKey, FormView $view,
* themes.
* @param array $blockNameHierarchy The block hierarchy, with the most
* specific block name at the end.
* @param integer $hierarchyLevel The level in the block hierarchy that
* @param int $hierarchyLevel The level in the block hierarchy that
* should be loaded.
*
* @return Boolean True if the resource could be loaded, false otherwise.
* @return bool True if the resource could be loaded, false otherwise.
*/
private function loadResourceForBlockNameHierarchy($cacheKey, FormView $view, array $blockNameHierarchy, $hierarchyLevel)
{
Expand Down
66 changes: 0 additions & 66 deletions AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
*/
abstract class AbstractType implements FormTypeInterface
{
/**
* @var array
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
*/
private $extensions = array();

/**
* {@inheritdoc}
*/
Expand All @@ -51,38 +44,6 @@ public function finishView(FormView $view, FormInterface $form, array $options)
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults($this->getDefaultOptions(array()));
$resolver->addAllowedValues($this->getAllowedOptionValues(array()));
}

/**
* Returns the default options for this type.
*
* @param array $options Unsupported as of Symfony 2.1.
*
* @return array The default options
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
* Use {@link setDefaultOptions()} instead.
*/
public function getDefaultOptions(array $options)
{
return array();
}

/**
* Returns the allowed option values for each option (if any).
*
* @param array $options Unsupported as of Symfony 2.1.
*
* @return array The allowed option values
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
* Use {@link setDefaultOptions()} instead.
*/
public function getAllowedOptionValues(array $options)
{
return array();
}

/**
Expand All @@ -92,31 +53,4 @@ public function getParent()
{
return 'form';
}

/**
* Sets the extensions for this type.
*
* @param array $extensions An array of FormTypeExtensionInterface
*
* @throws Exception\UnexpectedTypeException if any extension does not implement FormTypeExtensionInterface
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
*/
public function setExtensions(array $extensions)
{
$this->extensions = $extensions;
}

/**
* Returns the extensions associated with this type.
*
* @return array An array of FormTypeExtensionInterface
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3. Use
* {@link ResolvedFormTypeInterface::getTypeExtensions()} instead.
*/
public function getExtensions()
{
return $this->extensions;
}
}
28 changes: 0 additions & 28 deletions AbstractTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,5 @@ public function finishView(FormView $view, FormInterface $form, array $options)
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults($this->getDefaultOptions());
$resolver->addAllowedValues($this->getAllowedOptionValues());
}

/**
* Overrides the default options form the extended type.
*
* @return array
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
* Use {@link setDefaultOptions()} instead.
*/
public function getDefaultOptions()
{
return array();
}

/**
* Returns the allowed option values for each option (if any).
*
* @return array The allowed option values
*
* @deprecated Deprecated since version 2.1, to be removed in 2.3.
* Use {@link setDefaultOptions()} instead.
*/
public function getAllowedOptionValues()
{
return array();
}
}
Loading
0