@@ -338,6 +338,11 @@ |
||
| 338 | 338 | return (string) $this->renderer->searchAndRenderBlock($view, 'label', $vars); |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $name |
|
| 343 | + * |
|
| 344 | + * @return string|null |
|
| 345 | + */ |
|
| 341 | 346 | protected function getFormType($name) |
| 342 | 347 | { |
| 343 | 348 | if(method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Mopa\Bundle\BootstrapBundle\Twig\IconExtension; |
| 17 | 17 | use Symfony\Bridge\Twig\Extension\FormExtension; |
| 18 | 18 | use Symfony\Bridge\Twig\Extension\TranslationExtension; |
| 19 | -use Symfony\Component\Form\FormRenderer; |
|
| 20 | 19 | use Symfony\Bridge\Twig\Form\TwigRenderer; |
| 21 | 20 | use Symfony\Bridge\Twig\Form\TwigRendererEngine; |
| 22 | 21 | use Symfony\Bridge\Twig\Tests\Extension\Fixtures\StubTranslator; |