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