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

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