vendor/symfony/webpack-encore-bundle/src/WebpackEncoreBundle.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Symfony WebpackEncoreBundle package.
  4. * (c) Fabien Potencier <fabien@symfony.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 Symfony\WebpackEncoreBundle;
  9. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfony\WebpackEncoreBundle\DependencyInjection\Compiler\RemoveStimulusServicesPass;
  13. final class WebpackEncoreBundle extends Bundle
  14. {
  15. public function build(ContainerBuilder $container)
  16. {
  17. // run before TwigEnvironmentPass to remove the twig extension before it's used
  18. $container->addCompilerPass(new RemoveStimulusServicesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);
  19. }
  20. }