vendor/easycorp/easyadmin-bundle/src/EasyAdminBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace EasyCorp\Bundle\EasyAdminBundle;
  3. use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\CreateControllerRegistriesPass;
  4. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. /**
  8.  * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
  9.  */
  10. class EasyAdminBundle extends Bundle
  11. {
  12.     public const VERSION '4.0.7';
  13.     public function build(ContainerBuilder $container): void
  14.     {
  15.         $container->addCompilerPass(new CreateControllerRegistriesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
  16.     }
  17. }