[ Index ]

MailPress 544

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

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/ -> NullTransport.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   * Pretends messages have been sent, but just ignores them.
  13   *
  14   * @author Fabien Potencier
  15   */
  16  class Swift_NullTransport extends Swift_Transport_NullTransport
  17  {
  18      /**
  19       * Create a new NullTransport.
  20       */
  21      public function __construct()
  22      {
  23          call_user_func_array(
  24              array($this, 'Swift_Transport_NullTransport::__construct'),
  25              Swift_DependencyContainer::getInstance()
  26                  ->createDependenciesFor('transport.null')
  27          );
  28      }
  29  
  30      /**
  31       * Create a new NullTransport instance.
  32       *
  33       * @return Swift_NullTransport
  34       */
  35      public static function newInstance()
  36      {
  37          return new self();
  38      }
  39  }


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