vendor/symfonycasts/micro-mapper/src/SymfonycastsMicroMapperBundle.php line 21

  1. <?php
  2. /*
  3.  * This file is part of the SymfonyCasts MicroMapper package.
  4.  * Copyright (c) SymfonyCasts <https://symfonycasts.com/>
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. namespace Symfonycasts\MicroMapper;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfonycasts\MicroMapper\Bundle\DependencyInjection\MicroMapperCompilerPass;
  13. use Symfonycasts\MicroMapper\Bundle\DependencyInjection\MicroMapperExtension;
  14. /**
  15.  * @author Ryan Weaver <ryan@symfonycasts.com>
  16.  */
  17. class SymfonycastsMicroMapperBundle extends Bundle
  18. {
  19.     protected function createContainerExtension(): ?ExtensionInterface
  20.     {
  21.         return new MicroMapperExtension();
  22.     }
  23.     public function build(ContainerBuilder $container): void
  24.     {
  25.         $container->addCompilerPass(new MicroMapperCompilerPass());
  26.     }
  27. }