@@ -43,11 +43,11 @@ discard block |
||
| 43 | 43 | $app['silex_user.registration.confirmation.from_email'] = null; |
| 44 | 44 | |
| 45 | 45 | // Services |
| 46 | - $app['silex_user.user_manager'] = function ($app) { |
|
| 46 | + $app['silex_user.user_manager'] = function($app) { |
|
| 47 | 47 | return new UserManager($app); |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | - $app['silex_user.login_manager'] = function ($app) { |
|
| 50 | + $app['silex_user.login_manager'] = function($app) { |
|
| 51 | 51 | return new LoginManager( |
| 52 | 52 | $app['security.token_storage'], |
| 53 | 53 | $app['security.user_checker'], |
@@ -56,15 +56,15 @@ discard block |
||
| 56 | 56 | ); |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | - $app['silex_user.user_provider.username'] = function ($app) { |
|
| 59 | + $app['silex_user.user_provider.username'] = function($app) { |
|
| 60 | 60 | return new UserProvider($app['silex_user.user_manager']); |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | - $app['silex_user.user_provider.username_email'] = function ($app) { |
|
| 63 | + $app['silex_user.user_provider.username_email'] = function($app) { |
|
| 64 | 64 | return new EmailUserProvider($app['silex_user.user_manager']); |
| 65 | 65 | }; |
| 66 | 66 | |
| 67 | - $app['silex_user.mailer'] = function ($app) { |
|
| 67 | + $app['silex_user.mailer'] = function($app) { |
|
| 68 | 68 | if (isset($app['mailer']) && get_class($app['mailer']) === 'Swift_Mailer') { |
| 69 | 69 | $parameters = [ |
| 70 | 70 | 'from_email' => [ |
@@ -79,11 +79,11 @@ discard block |
||
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | 81 | // Controllers |
| 82 | - $app['auth.controller'] = function ($app) { |
|
| 82 | + $app['auth.controller'] = function($app) { |
|
| 83 | 83 | return new AuthController($app); |
| 84 | 84 | }; |
| 85 | 85 | |
| 86 | - $app['registration.controller'] = function ($app) { |
|
| 86 | + $app['registration.controller'] = function($app) { |
|
| 87 | 87 | return new RegistrationController($app); |
| 88 | 88 | }; |
| 89 | 89 | } |