SwiftmailerBundle.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Symfony\Bundle\SwiftmailerBundle;
  3. use Symfony\Framework\Bundle\Bundle;
  4. use Symfony\Components\DependencyInjection\ContainerInterface;
  5. use Symfony\Components\DependencyInjection\Loader\Loader;
  6. use Symfony\Bundle\SwiftmailerBundle\DependencyInjection\SwiftmailerExtension;
  7. /*
  8. * This file is part of the Symfony framework.
  9. *
  10. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  11. *
  12. * This source file is subject to the MIT license that is bundled
  13. * with this source code in the file LICENSE.
  14. */
  15. /**
  16. * Bundle.
  17. *
  18. * @package Symfony
  19. * @subpackage Bundle_SwiftmailerBundle
  20. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  21. */
  22. class SwiftmailerBundle extends Bundle
  23. {
  24. /**
  25. * Customizes the Container instance.
  26. *
  27. * @param Symfony\Components\DependencyInjection\ContainerInterface $container A ContainerInterface instance
  28. *
  29. * @return Symfony\Components\DependencyInjection\BuilderConfiguration A BuilderConfiguration instance
  30. */
  31. public function buildContainer(ContainerInterface $container)
  32. {
  33. Loader::registerExtension(new SwiftmailerExtension());
  34. }
  35. }