@@ -91,11 +91,10 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface
thrownew\RuntimeException('You have provided the swiftmailer.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
$self=$this;
$app->finish(function()use($app,$self){
//To speed things up (by avoiding Swift Mailer initialization), flush
//messages only if our mailer has been created (potentially used)
if($self->mailerCreated){
$app->finish(function()use($app){
// To speed things up (by avoiding Swift Mailer initialization), flush
// messages only if our mailer has been created (potentially used)