@@ -68,11 +68,11 @@ discard block |
||
| 68 | 68 | $app['silex_user.options'] = []; |
| 69 | 69 | |
| 70 | 70 | // Services |
| 71 | - $app['silex_user.user_manager'] = function ($app) { |
|
| 71 | + $app['silex_user.user_manager'] = function($app) { |
|
| 72 | 72 | return new UserManager($app['orm.em'], $app['security.encoder_factory'], $app['silex_user.options']['user_class']); |
| 73 | 73 | }; |
| 74 | 74 | |
| 75 | - $app['silex_user.login_manager'] = function ($app) { |
|
| 75 | + $app['silex_user.login_manager'] = function($app) { |
|
| 76 | 76 | return new LoginManager( |
| 77 | 77 | $app['security.token_storage'], |
| 78 | 78 | $app['security.user_checker'], |
@@ -81,15 +81,15 @@ discard block |
||
| 81 | 81 | ); |
| 82 | 82 | }; |
| 83 | 83 | |
| 84 | - $app['silex_user.user_provider.username'] = function ($app) { |
|
| 84 | + $app['silex_user.user_provider.username'] = function($app) { |
|
| 85 | 85 | return new UserProvider($app['silex_user.user_manager']); |
| 86 | 86 | }; |
| 87 | 87 | |
| 88 | - $app['silex_user.user_provider.username_email'] = function ($app) { |
|
| 88 | + $app['silex_user.user_provider.username_email'] = function($app) { |
|
| 89 | 89 | return new EmailUserProvider($app['silex_user.user_manager']); |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | - $app['silex_user.mailer'] = function ($app) { |
|
| 92 | + $app['silex_user.mailer'] = function($app) { |
|
| 93 | 93 | if (isset($app['mailer']) && get_class($app['mailer']) === 'Swift_Mailer') { |
| 94 | 94 | $parameters = [ |
| 95 | 95 | 'from_email' => [ |
@@ -104,11 +104,11 @@ discard block |
||
| 104 | 104 | }; |
| 105 | 105 | |
| 106 | 106 | // Controllers |
| 107 | - $app['auth.controller'] = function ($app) { |
|
| 107 | + $app['auth.controller'] = function($app) { |
|
| 108 | 108 | return new AuthController($app); |
| 109 | 109 | }; |
| 110 | 110 | |
| 111 | - $app['registration.controller'] = function ($app) { |
|
| 111 | + $app['registration.controller'] = function($app) { |
|
| 112 | 112 | return new RegistrationController($app); |
| 113 | 113 | }; |
| 114 | 114 | } |