Commit 32a27ca5 authored by Fabien Potencier's avatar Fabien Potencier

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

parent 4a525768
...@@ -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