vendor/swiftmailer/lib/classes/Swift/SpoolTransport.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     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  * @package Swift
       
    14  * @author  Fabien Potencier
       
    15  */
       
    16 class Swift_SpoolTransport extends Swift_Transport_SpoolTransport
       
    17 {
       
    18   /**
       
    19    * Create a new SpoolTransport.
       
    20    * @param Swift_Spool $spool
       
    21    */
       
    22   public function __construct(Swift_Spool $spool)
       
    23   {
       
    24     $arguments = Swift_DependencyContainer::getInstance()
       
    25       ->createDependenciesFor('transport.spool');
       
    26 
       
    27     $arguments[] = $spool;
       
    28 
       
    29     call_user_func_array(
       
    30       array($this, 'Swift_Transport_SpoolTransport::__construct'),
       
    31       $arguments
       
    32     );
       
    33   }
       
    34   
       
    35   /**
       
    36    * Create a new SpoolTransport instance.
       
    37    * @param Swift_Spool $spool
       
    38    * @return Swift_SpoolTransport
       
    39    */
       
    40   public static function newInstance(Swift_Spool $spool)
       
    41   {
       
    42     return new self($spool);
       
    43   }
       
    44 }