SimpleChoiceList deprecated

SimpleChoiceList deprecated

class SimpleChoiceList extends ChoiceList

deprecated

since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\ArrayChoiceList} instead.

A choice list for choices of type string or integer.

Choices and their associated labels can be passed in a single array. Since choices are passed as array keys, only strings or integer choices are allowed. Choices may also be given as hierarchy of unlimited depth by creating nested arrays. The title of the sub-hierarchy can be stored in the array key pointing to the nested arra