vendor/symfony/ux-twig-component/src/TwigComponentBundle.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\TwigComponent;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\UX\TwigComponent\DependencyInjection\Compiler\TwigComponentPass;
  14. /**
  15.  * @author Kevin Bond <kevinbond@gmail.com>
  16.  */
  17. final class TwigComponentBundle extends Bundle
  18. {
  19.     public function build(ContainerBuilder $container): void
  20.     {
  21.         $container->addCompilerPass(new TwigComponentPass());
  22.     }
  23.     public function getPath(): string
  24.     {
  25.         return \dirname(__DIR__);
  26.     }
  27. }