load('services.yml'); $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $container->setParameter('gregwar_captcha.image.height', $config['image']['height']); $container->setParameter('gregwar_captcha.image.width', $config['image']['width']); $resources = $container->getParameter('twig.form.resources'); $container->setParameter('twig.form.resources',array_merge(array('GregwarCaptchaBundle::captcha.html.twig'), $resources)); } }