Completed
Push — master ( 3420e2...77f2d3 )
by Alexis
01:43
created
src/Provider/UserServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $app['silex_user.options'] = [];
66 66
 
67 67
         // Services
68
-        $app['silex_user.user_manager'] = function ($app) {
68
+        $app['silex_user.user_manager'] = function($app) {
69 69
             $this->validateOptions($app);
70 70
 
71 71
             return new UserManager(
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']) && 'Swift_Mailer' === get_class($app['mailer'])) {
97 97
                 $parameters = [
98 98
                     'from_email' => [
@@ -106,16 +106,16 @@  discard block
 block discarded – undo
106 106
             return null;
107 107
         };
108 108
 
109
-        $app['silex_user.util.user_manipulator'] = function ($app) {
109
+        $app['silex_user.util.user_manipulator'] = function($app) {
110 110
             return new UserManipulator($app['silex_user.user_manager'], $app['dispatcher'], $app['request_stack']);
111 111
         };
112 112
 
113 113
         // Controllers
114
-        $app['silex_user.auth.controller'] = function ($app) {
114
+        $app['silex_user.auth.controller'] = function($app) {
115 115
             return new AuthController($app);
116 116
         };
117 117
 
118
-        $app['silex_user.registration.controller'] = function ($app) {
118
+        $app['silex_user.registration.controller'] = function($app) {
119 119
             return new RegistrationController($app);
120 120
         };
121 121
     }
Please login to merge, or discard this patch.