vendor/symfony/stimulus-bundle/src/StimulusBundle.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Symfony StimulusBundle 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\UX\StimulusBundle;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. use Symfony\UX\StimulusBundle\DependencyInjection\Compiler\RemoveAssetMapperServicesCompiler;
  12. /**
  13. * @author Ryan Weaver <ryan@symfonycasts.com>
  14. */
  15. final class StimulusBundle extends Bundle
  16. {
  17. public function getPath(): string
  18. {
  19. return \dirname(__DIR__);
  20. }
  21. public function build(ContainerBuilder $container)
  22. {
  23. $container->addCompilerPass(new RemoveAssetMapperServicesCompiler());
  24. }
  25. }