vendor/symfony/ux-autocomplete/src/AutocompleteBundle.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\Autocomplete;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\UX\Autocomplete\DependencyInjection\AutocompleteFormTypePass;
  14. /**
  15. * @author Ryan Weaver <ryan@symfonycasts.com>
  16. */
  17. final class AutocompleteBundle extends Bundle
  18. {
  19. public function build(ContainerBuilder $container)
  20. {
  21. $container->addCompilerPass(new AutocompleteFormTypePass());
  22. }
  23. public function getPath(): string
  24. {
  25. return \dirname(__DIR__);
  26. }
  27. }