[Form] Deprecated ArrayKeyChoiceList
This commit is contained in:
parent
da43309f07
commit
5386752bf9
@ -252,6 +252,9 @@ Form
|
|||||||
</service>
|
</service>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* The class `ArrayKeyChoiceList` was deprecated and will be removed in Symfony
|
||||||
|
3.0. Use `ArrayChoiceList` instead.
|
||||||
|
|
||||||
Translator
|
Translator
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
@ -312,6 +312,9 @@ UPGRADE FROM 2.x to 3.0
|
|||||||
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
|
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
|
||||||
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
|
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
|
### FrameworkBundle
|
||||||
|
|
||||||
* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`
|
* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Form\ChoiceList;
|
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;
|
use Symfony\Component\Form\Exception\InvalidArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +15,8 @@ use Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
*
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class ArrayKeyChoiceListTest extends AbstractChoiceListTest
|
class ArrayKeyChoiceListTest extends AbstractChoiceListTest
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user