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: * @package Swift
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: * @return Swift_NullTransport
33: */
34: public static function newInstance()
35: {
36: return new self();
37: }
38: }
39: