TYPO3  7.6
FailoverTransport.php
Go to the documentation of this file.
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 
17 {
23  public function __construct($transports = array())
24  {
25  call_user_func_array(
26  array($this, 'Swift_Transport_FailoverTransport::__construct'),
28  ->createDependenciesFor('transport.failover')
29  );
30 
31  $this->setTransports($transports);
32  }
33 
41  public static function newInstance($transports = array())
42  {
43  return new self($transports);
44  }
45 }