@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | $app['silex_user.login_after_registration'] = false; |
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,20 +56,20 @@ 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 | 67 | // Controllers |
68 | - $app['auth.controller'] = function ($app) { |
|
68 | + $app['auth.controller'] = function($app) { |
|
69 | 69 | return new AuthController($app); |
70 | 70 | }; |
71 | 71 | |
72 | - $app['registration.controller'] = function ($app) { |
|
72 | + $app['registration.controller'] = function($app) { |
|
73 | 73 | return new RegistrationController($app); |
74 | 74 | }; |
75 | 75 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | if (true === $app['silex_user.login_after_registration']) { |
111 | - $app->on(Events::REGISTRATION_COMPLETED, function (FilterUserResponseEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) use ($app) { |
|
111 | + $app->on(Events::REGISTRATION_COMPLETED, function(FilterUserResponseEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) use ($app) { |
|
112 | 112 | try { |
113 | 113 | $app['silex_user.login_manager']->logInUser($app['silex_user.firewall_name'], $event->getUser(), $event->getResponse()); |
114 | 114 | } catch (AccountStatusException $e) { |