Completed
Push — master ( 6f429a...4083cc )
by Alexis
06:02
created
src/Provider/SilexUserServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
         $app['silex_user.registration.confirmation.from_email'] = null;
49 49
 
50 50
         // Services
51
-        $app['silex_user.user_manager'] = function ($app) {
51
+        $app['silex_user.user_manager'] = function($app) {
52 52
             return new UserManager($app);
53 53
         };
54 54
 
55
-        $app['silex_user.login_manager'] = function ($app) {
55
+        $app['silex_user.login_manager'] = function($app) {
56 56
             return new LoginManager(
57 57
                 $app['security.token_storage'],
58 58
                 $app['security.user_checker'],
@@ -61,15 +61,15 @@  discard block
 block discarded – undo
61 61
             );
62 62
         };
63 63
 
64
-        $app['silex_user.user_provider.username'] = function ($app) {
64
+        $app['silex_user.user_provider.username'] = function($app) {
65 65
             return new UserProvider($app['silex_user.user_manager']);
66 66
         };
67 67
 
68
-        $app['silex_user.user_provider.username_email'] = function ($app) {
68
+        $app['silex_user.user_provider.username_email'] = function($app) {
69 69
             return new EmailUserProvider($app['silex_user.user_manager']);
70 70
         };
71 71
 
72
-        $app['silex_user.mailer'] = function ($app) {
72
+        $app['silex_user.mailer'] = function($app) {
73 73
             if (isset($app['mailer']) && get_class($app['mailer']) === 'Swift_Mailer') {
74 74
                 $parameters = [
75 75
                     'from_email' => [
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
         };
85 85
 
86 86
         // Controllers
87
-        $app['auth.controller'] = function ($app) {
87
+        $app['auth.controller'] = function($app) {
88 88
             return new AuthController($app);
89 89
         };
90 90
 
91
-        $app['registration.controller'] = function ($app) {
91
+        $app['registration.controller'] = function($app) {
92 92
             return new RegistrationController($app);
93 93
         };
94 94
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
 
129 129
         if (true === $app['silex_user.login_after_registration']) {
130
-            $app->on(Events::REGISTRATION_COMPLETED, function (FilterUserResponseEvent $event) use ($app) {
130
+            $app->on(Events::REGISTRATION_COMPLETED, function(FilterUserResponseEvent $event) use ($app) {
131 131
                 try {
132 132
                     $app['silex_user.login_manager']->logInUser($app['silex_user.firewall_name'], $event->getUser(), $event->getResponse());
133 133
                 } catch (AccountStatusException $e) {
Please login to merge, or discard this patch.