[Form] Deprecated ArrayKeyChoiceList

This commit is contained in:
Bernhard Schussek 2015-11-26 18:36:46 +01:00
parent da43309f07
commit 5386752bf9
4 changed files with 10 additions and 0 deletions

View File

@ -251,6 +251,9 @@ Form
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
</service>
```
* The class `ArrayKeyChoiceList` was deprecated and will be removed in Symfony
3.0. Use `ArrayChoiceList` instead.
Translator
----------

View File

@ -312,6 +312,9 @@ UPGRADE FROM 2.x to 3.0
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
* The `Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList` class has been removed in
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
### FrameworkBundle
* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Form\ChoiceList;
@trigger_error('The '.__NAMESPACE__.'\ArrayKeyChoiceList class is deprecated since version 2.8 and will be removed in 3.0. Use '.__NAMESPACE__.'\ArrayChoiceList instead.', E_USER_DEPRECATED);
use Symfony\Component\Form\Exception\InvalidArgumentException;
/**

View File

@ -15,6 +15,8 @@ use Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @group legacy
*/
class ArrayKeyChoiceListTest extends AbstractChoiceListTest
{