vendor/fresh/doctrine-enum-bundle/FreshDoctrineEnumBundle.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the FreshDoctrineEnumBundle.
  4.  *
  5.  * (c) Artem Henvald <genvaldartem@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Fresh\DoctrineEnumBundle;
  12. use Fresh\DoctrineEnumBundle\DependencyInjection\Compiler\RegisterEnumTypePass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * FreshDoctrineEnumBundle.
  17.  *
  18.  * @author Artem Henvald <genvaldartem@gmail.com>
  19.  */
  20. class FreshDoctrineEnumBundle extends Bundle
  21. {
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function build(ContainerBuilder $container): void
  26.     {
  27.         parent::build($container);
  28.         $container->addCompilerPass(new RegisterEnumTypePass());
  29.     }
  30. }