for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the EoHoneypotBundle package.
*
* (c) Eymen Gunay <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eo\HoneypotBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
/**
* Processes twig configuration
class FormCompilerPass implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
$resources = $container->getParameter('twig.form.resources');
if (in_array('@EoHoneypot/Form/div_layout.html.twig', $resources, true) === false) {
array_unshift($resources, '@EoHoneypot/Form/div_layout.html.twig');
$container->setParameter('twig.form.resources', $resources);
}