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

Open in your IDE?
  1. <?php
  2. namespace EasyCorp\Bundle\EasyAdminBundle;
  3. use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\Compiler\EasyAdminConfigPass;
  4. use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\Compiler\EasyAdminFormTypePass;
  5. use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\Compiler\FilterTypePass;
  6. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\HttpKernel\Bundle\Bundle;
  9. /**
  10.  * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
  11.  */
  12. class EasyAdminBundle extends Bundle
  13. {
  14.     public const VERSION '2.3.15';
  15.     public function build(ContainerBuilder $container)
  16.     {
  17.         $container->addCompilerPass(new EasyAdminFormTypePass(), PassConfig::TYPE_BEFORE_REMOVING);
  18.         // this compiler pass must run earlier than FormPass to clear
  19.         // the 'form.type_guesser' tag for 'easyadmin.filter.type_guesser' services
  20.         $container->addCompilerPass(new FilterTypePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION10);
  21.         $container->addCompilerPass(new EasyAdminConfigPass());
  22.     }
  23. }