for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace eXpansion\Bundle\ImmersiveWindows\DependencyInjection\Compiler;
use eXpansion\Bundle\ImmersiveWindows\Plugins\WindowsGuiHandler;
use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
/**
* Class Pass
*
* @author de Cramer Oliver<[email protected]>
* @copyright 2017 Smile
* @package eXpansion\Bundle\Menu\DependencyInjection\Compiler
*/
class Override implements CompilerPassInterface
{
* Modifying the window factory context to use custom gui handler.
* @param ContainerBuilder $container
public function process(ContainerBuilder $container)
$container->getDefinition(WindowFactoryContext::class)
->setArgument('$guiHandler', new Reference(WindowsGuiHandler::class));
}