vendor/elao/enum/src/Bridge/Symfony/Bundle/ElaoEnumBundle.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the "elao/enum" package.
  4.  *
  5.  * Copyright (C) Elao
  6.  *
  7.  * @author Elao <contact@elao.com>
  8.  */
  9. namespace Elao\Enum\Bridge\Symfony\Bundle;
  10. use Elao\Enum\Bridge\Symfony\Bundle\DependencyInjection\Compiler\DoctrineDBALTypesPass;
  11. use Elao\Enum\Bridge\Symfony\Bundle\DependencyInjection\Compiler\DoctrineODMTypesPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class ElaoEnumBundle extends Bundle
  15. {
  16.     public function build(ContainerBuilder $container)
  17.     {
  18.         parent::build($container);
  19.         $container->addCompilerPass(
  20.             new DoctrineDBALTypesPass($container->getParameter('kernel.cache_dir') . '/elao_enum_doctrine_dbal_types.php')
  21.         );
  22.         $container->addCompilerPass(
  23.             new DoctrineODMTypesPass($container->getParameter('kernel.cache_dir') . '/elao_enum_doctrine_odm_types.php')
  24.         );
  25.     }
  26. }