| 1 | <?php |
||
| 9 | class CssInlinerPlugin implements Swift_Events_SendListener |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var CssToInlineStyles |
||
| 13 | */ |
||
| 14 | private $converter; |
||
| 15 | |||
| 16 | protected $contentTypes = [ |
||
| 17 | 'text/html', |
||
| 18 | 'multipart/alternative' |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param CssToInlineStyles $converter |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(CssToInlineStyles $converter = null) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param Swift_Events_SendEvent $event |
||
| 35 | */ |
||
| 36 | 2 | public function beforeSendPerformed(Swift_Events_SendEvent $event) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param Swift_Events_SendEvent $event |
||
| 53 | */ |
||
| 54 | 1 | public function sendPerformed(Swift_Events_SendEvent $event) |
|
| 58 | } |
||
| 59 |