[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/ -> SpoolTransport.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2009 Fabien Potencier <fabien.potencier@gmail.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  
  11  /**
  12   * Stores Messages in a queue.
  13   *
  14   * @author Fabien Potencier
  15   */
  16  class Swift_SpoolTransport extends Swift_Transport_SpoolTransport
  17  {
  18      /**
  19       * Create a new SpoolTransport.
  20       *
  21       * @param Swift_Spool $spool
  22       */
  23      public function __construct(Swift_Spool $spool)
  24      {
  25          $arguments = Swift_DependencyContainer::getInstance()
  26              ->createDependenciesFor('transport.spool');
  27  
  28          $arguments[] = $spool;
  29  
  30          call_user_func_array(
  31              array($this, 'Swift_Transport_SpoolTransport::__construct'),
  32              $arguments
  33          );
  34      }
  35  
  36      /**
  37       * Create a new SpoolTransport instance.
  38       *
  39       * @param Swift_Spool $spool
  40       *
  41       * @return Swift_SpoolTransport
  42       */
  43      public static function newInstance(Swift_Spool $spool)
  44      {
  45          return new self($spool);
  46      }
  47  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1