Files
b2b.redline.com.pl/modules/newsletterpro/libraries/swift/classes/Swift/NullTransport.php
2025-06-24 14:14:35 +02:00

40 lines
982 B
PHP

<?php
/*
* This file is part of SwiftMailer.
* (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Pretends messages have been sent, but just ignores them.
*
* @author Fabien Potencier
*/
class NewsletterPro_Swift_NullTransport extends NewsletterPro_Swift_Transport_NullTransport
{
/**
* Create a new NullTransport.
*/
public function __construct()
{
call_user_func_array(
array($this, 'NewsletterPro_Swift_Transport_NullTransport::__construct'),
NewsletterPro_Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.null')
);
}
/**
* Create a new NullTransport instance.
*
* @return NewsletterPro_Swift_NullTransport
*/
public static function newInstance()
{
return new self();
}
}