SpoolTransport.php 780 B

123456789101112131415161718192021222324252627282930313233
  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. * Stores Messages in a queue.
  11. *
  12. * @author Fabien Potencier
  13. */
  14. class Swift_SpoolTransport extends Swift_Transport_SpoolTransport
  15. {
  16. /**
  17. * Create a new SpoolTransport.
  18. */
  19. public function __construct(Swift_Spool $spool)
  20. {
  21. $arguments = Swift_DependencyContainer::getInstance()
  22. ->createDependenciesFor('transport.spool');
  23. $arguments[] = $spool;
  24. \call_user_func_array(
  25. [$this, 'Swift_Transport_SpoolTransport::__construct'],
  26. $arguments
  27. );
  28. }
  29. }