Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
fixed switfmailer spool where the event dispatcher as different from …
Browse files Browse the repository at this point in the history
…the other ones
  • Loading branch information
fabpot committed Jun 30, 2014
1 parent 4a52576 commit 32a27ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Silex/Provider/SwiftmailerServiceProvider.php
Expand Up @@ -34,7 +34,7 @@ public function register(Application $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) {
Expand Down

0 comments on commit 32a27ca

Please sign in to comment.