NullTransport.php 673 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Pretends messages have been sent, but just ignores them.
  11. *
  12. * @author Fabien Potencier
  13. */
  14. class Swift_NullTransport extends Swift_Transport_NullTransport
  15. {
  16. public function __construct()
  17. {
  18. \call_user_func_array(
  19. [$this, 'Swift_Transport_NullTransport::__construct'],
  20. Swift_DependencyContainer::getInstance()
  21. ->createDependenciesFor('transport.null')
  22. );
  23. }
  24. }