vendor/josipjelic/msgphp-eav-bundle/MsgPhpEavBundle.php line 18

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace MsgPhp\EavBundle;
  4. use MsgPhp\Domain\Infrastructure\DependencyInjection\BundleHelper;
  5. use MsgPhp\EavBundle\DependencyInjection\Compiler\CleanupPass;
  6. use MsgPhp\EavBundle\DependencyInjection\Extension;
  7. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  8. use Symfony\Component\DependencyInjection\ContainerBuilder;
  9. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. /**
  12.  * @author Roland Franssen <franssen.roland@gmail.com>
  13.  */
  14. final class MsgPhpEavBundle extends Bundle
  15. {
  16.     public function boot(): void
  17.     {
  18.         BundleHelper::boot($this->container);
  19.     }
  20.     public function build(ContainerBuilder $container): void
  21.     {
  22.         $container->addCompilerPass(new CleanupPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION100);
  23.         BundleHelper::build($container);
  24.     }
  25.     public function getContainerExtension(): ?ExtensionInterface
  26.     {
  27.         return new Extension();
  28.     }
  29. }