Commit 8d2140c0 authored by Fabien Potencier's avatar Fabien Potencier

bug #970 fixed switfmailer spool where the event dispatcher as different from...

bug #970 fixed switfmailer spool where the event dispatcher as different from the other ones (fabpot)

This PR was merged into the 1.2 branch.

Discussion
----------

fixed switfmailer spool where the event dispatcher as different from the other ones

see #959

Commits
-------

32a27ca5 fixed switfmailer spool where the event dispatcher as different from the other ones
parents 4a525768 32a27ca5
...@@ -34,7 +34,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface ...@@ -34,7 +34,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface
}); });
$app['swiftmailer.spooltransport'] = $app->share(function ($app) { $app['swiftmailer.spooltransport'] = $app->share(function ($app) {
return new \Swift_SpoolTransport($app['swiftmailer.spool']); return new \Swift_Transport_SpoolTransport($app['swiftmailer.transport.eventdispatcher'], $app['swiftmailer.spool']);
}); });
$app['swiftmailer.spool'] = $app->share(function ($app) { $app['swiftmailer.spool'] = $app->share(function ($app) {
......
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