vendor/sylius/sylius/src/Sylius/Bundle/ApiBundle/SyliusApiBundle.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  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 Sylius\Bundle\ApiBundle;
  12. use Sylius\Bundle\ApiBundle\DependencyInjection\Compiler\CommandDataTransformerPass;
  13. use Sylius\Bundle\ApiBundle\DependencyInjection\Compiler\FlattenExceptionNormalizerDecoratorCompilerPass;
  14. use Sylius\Bundle\ApiBundle\DependencyInjection\Compiler\LegacyErrorHandlingCompilerPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. /** @experimental */
  18. final class SyliusApiBundle extends Bundle
  19. {
  20.     public function build(ContainerBuilder $container): void
  21.     {
  22.         $container->addCompilerPass(new CommandDataTransformerPass());
  23.         $container->addCompilerPass(new FlattenExceptionNormalizerDecoratorCompilerPass());
  24.         $container->addCompilerPass(new LegacyErrorHandlingCompilerPass());
  25.     }
  26. }