for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Muhammed Akbulut <[email protected]>
* @author Gerard van Helden <[email protected]>
* @copyright Zicht Online <http://www.zicht.nl>
*/
namespace Zicht\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
* Class Pass
*
* @package Zicht\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler
class RemoveExtensionsPass implements CompilerPassInterface
{
* Adds extra configurations
* @param ContainerBuilder $container
* @return null
public function process(ContainerBuilder $container)
if (!$container->hasExtension('doctrine')) {
$container->removeDefinition('zicht_framework_extra.form.zicht_parent_choice_type');
}
if (!$container->hasExtension('liip_imagine')) {
$container->removeDefinition('zicht_framework_extra.imagine.match_filter_loader');