| 1 | <?php |
||
| 21 | class LegacyFormHelper |
||
| 22 | { |
||
| 23 | private static $map = [ |
||
| 24 | 'Tadcka\Bundle\RoutingBundle\Form\Type\RouteChoiceType' => 'tadcka_route_choice', |
||
| 25 | 'Symfony\Component\Form\Extension\Core\Type\CheckboxType' => 'checkbox', |
||
| 26 | 'Symfony\Component\Form\Extension\Core\Type\ChoiceType' => 'choice', |
||
| 27 | 'Symfony\Component\Form\Extension\Core\Type\TextType' => 'text', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $class |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | * |
||
| 35 | * @throws InvalidArgumentException |
||
| 36 | */ |
||
| 37 | public static function getType($class) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public static function isLegacy() |
||
| 57 | } |
||
| 58 |