From 0b9dbceb18c0d2e95fdfc0861de0a1153e777d86 Mon Sep 17 00:00:00 2001 From: Mickael Perraud Date: Mon, 14 Dec 2015 23:35:35 +0100 Subject: [PATCH] Mail: bad registering of the provider --- app/bootstrap.php | 4 ++-- app/config.php.dist | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/bootstrap.php b/app/bootstrap.php index 4c5c7c1..00737e6 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -137,10 +137,10 @@ // ******* // ** Mail // ******* -$app->register(new SwiftmailerServiceProvider(array( +$app->register(new SwiftmailerServiceProvider(), array( 'swiftmailer.options' => $app['mail.options'], 'swiftmailer.class_path' => __DIR__.'/../vendor/SwiftMailer/lib/classes/', -))); +)); // ******* // ******* diff --git a/app/config.php.dist b/app/config.php.dist index d8ec611..816e447 100644 --- a/app/config.php.dist +++ b/app/config.php.dist @@ -34,7 +34,7 @@ $app['db.options'] = array( // ******* // @see http://silex.sensiolabs.org/doc/providers/swiftmailer.html#parameters // SMTP Transport -$app['swiftmailer.options'] = array( +$app['mail.options'] = array( 'host' => 'localhost', 'port' => '25', 'username' => '',