DependencyInjection/FenrizbesColorPickerTypeExtension.php
protected function registerResources(ContainerBuilder $container)
    {
        $templatingEngines = $container->getParameter('templating.engines');

        if (in_array('twig', $templatingEngines)) {
            $container->setParameter('twig.form.resources', array_merge(
                array('FenrizbesColorPickerTypeBundle:Form:fields.html.twig'),
                $container->getParameter('twig.form.resources')
            ));
        }
    }
protected function registerResources(ContainerBuilder $container)
    {
        $templatingEngines = $container->getParameter('templating.engines');

        if (in_array('twig', $templatingEngines)) {
            $container->setParameter('twig.form.resources', array_merge(
                array('FenrizbesColorPickerTypeBundle:Form:fields.html.twig'),
                $container->getParameter('twig.form.resources')
            ));
        }
    }
protected function registerResources ( ContainerBuilder $ container ) { $ templatingEngines = $ container -> getParameter ( 'templating.engines' ) ; if ( in_array ( 'twig' , $ templatingEngines ) ) { $ container -> setParameter ( 'twig.form.resources' , array_merge ( array ( 'FenrizbesColorPickerTypeBundle:Form:fields.html.twig' ) , $ container -> getParameter ( 'twig.form.resources' ) ) ) ; } }
Registers form templates

@param ContainerBuilder $container
Registers form templates