vendor/nelmio/cors-bundle/NelmioCorsBundle.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the NelmioCorsBundle.
  4. *
  5. * (c) Nelmio <hello@nelm.io>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Nelmio\CorsBundle;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. /**
  14. * @author Jordi Boggiano <j.boggiano@seld.be>
  15. */
  16. class NelmioCorsBundle extends Bundle
  17. {
  18. public function build(ContainerBuilder $container): void
  19. {
  20. parent::build($container);
  21. $container->addCompilerPass(new DependencyInjection\Compiler\CorsConfigurationProviderPass());
  22. }
  23. }