1 | <?php |
||
22 | final class LegacyFormHelper |
||
23 | { |
||
24 | private static $map = array( |
||
25 | 'Symfony\Component\Form\Extension\Core\Type\ChoiceType' => 'choice', |
||
26 | ); |
||
27 | |||
28 | /** |
||
29 | * Get a form field type compatible with the current version of Symfony |
||
30 | * |
||
31 | * @param string $class |
||
32 | * @return string Class or type name |
||
33 | */ |
||
34 | public static function getType($class) |
||
46 | |||
47 | /** |
||
48 | * Check whether to use legacy form behaviour from Symfony <3.0 |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | public static function isLegacy() |
||
56 | |||
57 | private function __construct() |
||
60 | |||
61 | private function __clone() |
||
64 | } |
||
65 |