FOSUserBundle.php 782B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the FOSUserBundle package.
  4. *
  5. * (c) FriendsOfSymfony <http://friendsofsymfony.github.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 FOS\UserBundle;
  11. use FOS\UserBundle\DependencyInjection\Compiler\ValidationPass;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. /**
  15. * @author Matthieu Bontemps <matthieu@knplabs.com>
  16. * @author Thibault Duplessis <thibault.duplessis@gmail.com>
  17. */
  18. class FOSUserBundle extends Bundle
  19. {
  20. public function build(ContainerBuilder $container)
  21. {
  22. parent::build($container);
  23. $container->addCompilerPass(new ValidationPass());
  24. }
  25. }