Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | class Swift_MailTransport extends Swift_Transport_MailTransport |
||
28 | // @codingStandardsIgnoreEnd |
||
29 | { |
||
30 | /** |
||
31 | * Create a new MailTransport, optionally specifying $extraParams. |
||
32 | * |
||
33 | * @param string $extraParams |
||
34 | */ |
||
35 | public function __construct($extraParams = '-f%s') |
||
36 | { |
||
37 | call_user_func_array( |
||
38 | [$this, 'Swift_Transport_MailTransport::__construct'], |
||
39 | Swift_DependencyContainer::getInstance() |
||
40 | ->createDependenciesFor('transport.mail') |
||
41 | ); |
||
42 | |||
43 | $this->setExtraParams($extraParams); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Create a new MailTransport instance. |
||
48 | * |
||
49 | * @param string $extraParams To be passed to mail() |
||
50 | * |
||
51 | * @return self |
||
52 | */ |
||
53 | public static function newInstance($extraParams = '-f%s') |
||
56 | } |
||
57 | } |
||
58 |