[ Index ]

MailPress 544

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

title

Body

[close]

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

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2004-2009 Chris Corbyn
   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   * Contains a list of redundant Transports so when one fails, the next is used.
  13   *
  14   * @author Chris Corbyn
  15   */
  16  class Swift_FailoverTransport extends Swift_Transport_FailoverTransport
  17  {
  18      /**
  19       * Creates a new FailoverTransport with $transports.
  20       *
  21       * @param Swift_Transport[] $transports
  22       */
  23      public function __construct($transports = array())
  24      {
  25          call_user_func_array(
  26              array($this, 'Swift_Transport_FailoverTransport::__construct'),
  27              Swift_DependencyContainer::getInstance()
  28                  ->createDependenciesFor('transport.failover')
  29              );
  30  
  31          $this->setTransports($transports);
  32      }
  33  
  34      /**
  35       * Create a new FailoverTransport instance.
  36       *
  37       * @param Swift_Transport[] $transports
  38       *
  39       * @return Swift_FailoverTransport
  40       */
  41      public static function newInstance($transports = array())
  42      {
  43          return new self($transports);
  44      }
  45  }


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