Skip to content

Instantly share code, notes, and snippets.

@florinutz
Created March 26, 2014 09:31
Show Gist options
  • Save florinutz/9779647 to your computer and use it in GitHub Desktop.
Save florinutz/9779647 to your computer and use it in GitHub Desktop.
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$resources = $container->hasParameter('twig.form.resources') ? $container->getParameter('twig.form.resources') : array();
$resources[] = 'WyzbizMainBundle:Form:fields.html.twig';
$resources[] = 'WyzbizMainBundle:Form:type_model_list_multiple.html.twig';
$container->setParameter('twig.form.resources', $resources);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
$this->loadAdminServices($loader);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment