Skip to content

Commit

Permalink
bug silexphp#970 fixed switfmailer spool where the event dispatcher a…
Browse files Browse the repository at this point in the history
…s 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 silexphp#959

Commits
-------

32a27ca fixed switfmailer spool where the event dispatcher as different from the other ones
  • Loading branch information
fabpot committed Jun 30, 2014
2 parents 4a52576 + 32a27ca commit 8d2140c
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 8d2140c

Please sign in to comment.