Skip to content

[Form] Rename CollectionType options type and options #13820

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 74 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
ebe0889
Revert "removed 3.0 constraints from 2.7 composer files"
fabpot Apr 10, 2015
38374f9
updated version to 2.8
fabpot Apr 10, 2015
222701f
Merge branch '2.7' into 2.8
fabpot Apr 11, 2015
3694e5e
[Translation] added FileLoader.
aitboudad Apr 15, 2015
fbe1a43
[FrameworkBundle][Server Command] add address port number option.
aitboudad Apr 16, 2015
6bab76d
feature #14383 [FrameworkBundle][Server Command] add address port num…
fabpot Apr 18, 2015
862bdf1
feature #14359 [Translation] added FileLoader. (aitboudad)
fabpot Apr 18, 2015
eb50b13
[VarDumper] Added support for SplFileInfo
lyrixx Apr 20, 2015
e75c233
[VarDumper] Added support for SplFileObject
lyrixx Apr 21, 2015
ff4424a
[Console] Bind the closure (code) to the Command if possible
lyrixx Apr 21, 2015
449b18c
feature #14424 [VarDumper] Added support for SplFileInfo (lyrixx)
nicolas-grekas Apr 22, 2015
208ca94
[VarDumper] Allow preserving a subset of cut arrays
nicolas-grekas Apr 22, 2015
e861134
feature #14431 [Console] Bind the closure (code) to the Command if po…
stof Apr 23, 2015
a4e3e07
feature #14443 [VarDumper] Allow preserving a subset of cut arrays (n…
nicolas-grekas Apr 23, 2015
f5a0ac2
Merge branch '2.7' into 2.8
nicolas-grekas Apr 24, 2015
e6d05b7
Merge branch '2.7' into 2.8
nicolas-grekas Apr 24, 2015
dc89425
Merge branch '2.7' into 2.8
nicolas-grekas Apr 24, 2015
b09df56
Merge branch '2.7' into 2.8
nicolas-grekas Apr 24, 2015
b941bd3
Changed output for translation:debug command
Apr 26, 2015
7e29d2c
feature #14473 [DX] Minor improvement for the translation:debug outpu…
aitboudad Apr 26, 2015
0e7fe79
added the --all option to the debug:translation command
sgehrig Apr 11, 2015
1973960
feature #14320 [Translation] added an --all option to the debug:trans…
aitboudad Apr 29, 2015
952929c
[FrameworkBundle][EventDispatcher] Add priorities to the debug:event-…
Seldaek May 5, 2015
2869a32
[Translator] deprecate getMessages in favor of getCatalogue.
aitboudad May 4, 2015
55b3525
feature #14546 [Translator] deprecate getMessages in favor of getCata…
aitboudad May 6, 2015
da0194b
feature #14563 [FrameworkBundle][EventDispatcher] Add priorities to t…
fabpot May 6, 2015
128140e
fixed CS
fabpot May 6, 2015
bba0a25
[FrameworkBundle][DX] Add option to specify additional translation lo…
Seldaek May 5, 2015
88b7e7c
feature #14561 [FrameworkBundle][DX] Add option to specify additional…
aitboudad May 6, 2015
bb8b076
Merge branch '2.7' into 2.8
nicolas-grekas May 12, 2015
5133bf2
Merge branch '2.7' into 2.8
nicolas-grekas May 12, 2015
aef24cb
Merge branch '2.7' into 2.8
nicolas-grekas May 13, 2015
2119bf3
Merge branch '2.7' into 2.8
nicolas-grekas May 15, 2015
4b71fe0
Merge branch '2.7' into 2.8
fabpot May 15, 2015
5fdc650
[WebProfilerBundle] Improved page for logs
hason Jan 7, 2015
65d4ae0
feature #13324 [WebProfilerBundle] Improved page for logs (hason)
fabpot May 17, 2015
53330e1
[Form] deprecate read_only option
Tobion Apr 18, 2015
791e583
feature #14403 [Form] deprecate read_only option (Tobion)
fabpot May 20, 2015
29ec5ca
[Translation] add options 'as_tree', 'inline' to YamlFileDumper to du…
gepo Apr 21, 2015
a57ce90
feature #14630 [Translator] Dump translation constants as tree instea…
aitboudad May 20, 2015
3fd7cea
[Security] Add setVoters() on AccessDecisionManager
nicolas-grekas May 23, 2015
0573f28
Support for array denormalization.
derrabus Apr 13, 2015
2983ecb
feature #14756 [Serializer] Support for array denormalization (derrabus)
dunglas May 27, 2015
78cf382
feature #14733 [Security] Add setVoters() on AccessDecisionManager (n…
fabpot Jun 1, 2015
73f0ee2
[DI][Routing] recursive directory loading
lavoiesl Jun 10, 2014
60b1c5b
Added CHANGELOG entries, cleanups
nicolas-grekas May 20, 2015
5593bdd
Merge branch '2.7' into 2.8
fabpot Jun 4, 2015
d04cc5e
feature #14700 [DependencyInjection] [Routing] [Config] Recursive dir…
fabpot Jun 5, 2015
99ec717
Merge branch '2.7' into 2.8
fabpot Jun 5, 2015
3cbff05
[TwigBundle] Reconfigure twig paths when they are updated
chbruyand May 29, 2015
4133aad
feature #14781 [TwigBundle] Reconfigure twig paths when they are upda…
fabpot Jun 5, 2015
9004e29
Removed route name from the debugbar.
jbgomond Jun 7, 2015
1baf05a
added missing "
OskarStark Jun 8, 2015
90f771c
minor #14909 added missing " (OskarStark)
fabpot Jun 8, 2015
5b67bbd
[toolbar] Merged colored icons in toolbar
jbgomond Jun 7, 2015
567af65
feature #14904 [toolbar] Merged colored icons in toolbar (MJBGO)
fabpot Jun 8, 2015
0315e5d
feature #14903 [profiler][request toolbar] Removed route name from th…
fabpot Jun 8, 2015
f38296b
Merge branch '2.7' into 2.8
fabpot Jun 9, 2015
2ad3b0d
[HttpFoundation] Postpone setting the date header on a Response
jakzal Jun 8, 2015
a44ceb3
feature #14912 [HttpFoundation] Postpone setting the date header on a…
Tobion Jun 9, 2015
ae470cd
Merge branch '2.7' into 2.8
fabpot Jun 11, 2015
692deff
fix Merge branch '2.7' into 2.8 JsonFileLoader
gimler Jun 11, 2015
5f36605
minor #14954 fix Merge branch '2.7' into 2.8 JsonFileLoader (gimler)
fabpot Jun 11, 2015
65f9291
[Profiler][Translation] added filter.
aitboudad Jun 15, 2015
15ff865
feature #14993 [Profiler][Translation] added filter. (aitboudad)
fabpot Jun 15, 2015
b52e197
[Form] Added the 'range' FormType
jaytaph Sep 27, 2014
09fabfe
feature #12067 [Form] Added the 'range' FormType (jaytaph)
webmozart Jun 17, 2015
80b0a80
[Form] Add "prototype_data" option to collection type
kgilden Oct 24, 2014
54bd6f7
feature #12314 [Form] Add "prototype_data" option to collection type …
webmozart Jun 17, 2015
6c554c6
[Form] Deprecated "cascade_validation"
webmozart Oct 16, 2014
04ae391
feature #15019 [Form] Deprecated "cascade_validation" (webmozart)
fabpot Jun 17, 2015
74d794b
[Form] [EventListener] fixed sending non array data on submit to Resi…
BruceWouaigne Mar 5, 2015
63c8ce9
bug #13851 [Form] [EventListener] fixed sending non array data on pre…
webmozart Jun 18, 2015
e2a051d
Rename CollectionType options for entries
wouterj Mar 1, 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
24 changes: 24 additions & 0 deletions UPGRADE-2.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
UPGRADE FROM 2.7 to 2.8
=======================

Translator
----------
* The `getMessages()` method of the `Symfony\Component\Translation\Translator` was deprecated and will be removed in
Symfony 3.0. You should use the `getCatalogue()` method of the `Symfony\Component\Translation\TranslatorBagInterface`.

Before:

```php
$messages = $translator->getMessages();
```

After:

```php
$catalogue = $translator->getCatalogue($locale);
$messages = $catalogue->all();

while ($catalogue = $catalogue->getFallbackCatalogue()) {
$messages = array_replace_recursive($catalogue->all(), $messages);
}
```
4 changes: 4 additions & 0 deletions src/Symfony/Component/Translation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

2.8.0
-----
* deprecated Translator::getMessages(), rely on the TranslatorBagInterface::getCatalogue() method instead.

2.7.0
-----

Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Component/Translation/Tests/TranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,10 @@ public function testTransChoiceFallbackWithNoTranslation()
}

/**
* @group legacy
* @dataProvider dataProviderGetMessages
*/
public function testGetMessages($resources, $locale, $expected)
public function testLegacyGetMessages($resources, $locale, $expected)
{
$locales = array_keys($resources);
$_locale = !is_null($locale) ? $locale : reset($locales);
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ protected function getLoaders()
*/
public function getMessages($locale = null)
{
trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Rely on the TranslatorBagInterface::getCatalogue() method instead', E_USER_DEPRECATED);

$catalogues = array();
$catalogues[] = $catalogue = $this->getCatalogue($locale);
while ($catalogue = $catalogue->getFallbackCatalogue()) {
Expand Down