Commit 6435678e authored by Fabien Potencier's avatar Fabien Potencier

feature #1583 Swiftmailer SSL stream_context_options cannot be set #1582 : (leClaude)

This PR was merged into the 2.2.x-dev branch.

Discussion
----------

Swiftmailer SSL stream_context_options cannot be set #1582 :

Adding stream_context_options to the $app['swiftmailer.options']

Commits
-------

d622daa3 Swiftmailer SSL stream_context_options cannot be set #1582 : Adding stream_context_options to the $app['swiftmailer.options']
parents c62cfba1 d622daa3
...@@ -62,6 +62,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe ...@@ -62,6 +62,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
'password' => '', 'password' => '',
'encryption' => null, 'encryption' => null,
'auth_mode' => null, 'auth_mode' => null,
'stream_context_options' => [],
), $app['swiftmailer.options']); ), $app['swiftmailer.options']);
$transport->setHost($options['host']); $transport->setHost($options['host']);
...@@ -70,6 +71,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe ...@@ -70,6 +71,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
$transport->setUsername($options['username']); $transport->setUsername($options['username']);
$transport->setPassword($options['password']); $transport->setPassword($options['password']);
$transport->setAuthMode($options['auth_mode']); $transport->setAuthMode($options['auth_mode']);
$transport->setStreamOptions($options['stream_context_options']);
return $transport; return $transport;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment