SwiftmailerBundle.php 760B

1234567891011121314151617181920212223242526272829303132
  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\Bundle\SwiftmailerBundle;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Bundle\SwiftmailerBundle\DependencyInjection\Compiler\RegisterPluginsPass;
  14. /**
  15. * Bundle.
  16. *
  17. * @author Fabien Potencier <fabien@symfony.com>
  18. */
  19. class SwiftmailerBundle extends Bundle
  20. {
  21. public function build(ContainerBuilder $container)
  22. {
  23. parent::build($container);
  24. $container->addCompilerPass(new RegisterPluginsPass());
  25. }
  26. }