<?php
namespace EasyCorp\Bundle\EasyAdminBundle;
use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\CreateControllerRegistriesPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
*/
class EasyAdminBundle extends Bundle
{
public const VERSION = '4.0.7';
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new CreateControllerRegistriesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
}
}