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 '3.1.6';
  13.     public const CONTEXT_ATTRIBUTE_NAME 'easyadmin_context';
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         $container->addCompilerPass(new CreateControllerRegistriesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
  17.     }
  18. }