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

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