vendor/odolbeau/phone-number-bundle/src/MisdPhoneNumberBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony2 PhoneNumberBundle.
  4.  *
  5.  * (c) University of Cambridge
  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 Misd\PhoneNumberBundle;
  11. use Misd\PhoneNumberBundle\DependencyInjection\Compiler\FormTwigTemplateCompilerPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. /**
  15.  * Phone number bundle.
  16.  */
  17. class MisdPhoneNumberBundle extends Bundle
  18. {
  19.     /**
  20.      * {@inheritdoc}
  21.      */
  22.     public function build(ContainerBuilder $container): void
  23.     {
  24.         parent::build($container);
  25.         $container->addCompilerPass(new FormTwigTemplateCompilerPass());
  26.     }
  27. }