Completed
Push — master ( b35c14...96ea8b )
by Alexis
01:51
created
src/Provider/SilexUserServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $app['silex_user.options'] = [];
80 80
 
81 81
         // Services
82
-        $app['silex_user.user_manager'] = function ($app) {
82
+        $app['silex_user.user_manager'] = function($app) {
83 83
             $this->validateOptions($app);
84 84
 
85 85
             return new UserManager(
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             );
90 90
         };
91 91
 
92
-        $app['silex_user.login_manager'] = function ($app) {
92
+        $app['silex_user.login_manager'] = function($app) {
93 93
             return new LoginManager(
94 94
                 $app['security.token_storage'],
95 95
                 $app['security.user_checker'],
@@ -98,15 +98,15 @@  discard block
 block discarded – undo
98 98
             );
99 99
         };
100 100
 
101
-        $app['silex_user.user_provider.username'] = function ($app) {
101
+        $app['silex_user.user_provider.username'] = function($app) {
102 102
             return new UserProvider($app['silex_user.user_manager']);
103 103
         };
104 104
 
105
-        $app['silex_user.user_provider.username_email'] = function ($app) {
105
+        $app['silex_user.user_provider.username_email'] = function($app) {
106 106
             return new EmailUserProvider($app['silex_user.user_manager']);
107 107
         };
108 108
 
109
-        $app['silex_user.mailer'] = function ($app) {
109
+        $app['silex_user.mailer'] = function($app) {
110 110
             if (isset($app['mailer']) && get_class($app['mailer']) === 'Swift_Mailer') {
111 111
                 $parameters = [
112 112
                     'from_email' => [
@@ -120,16 +120,16 @@  discard block
 block discarded – undo
120 120
             return null;
121 121
         };
122 122
 
123
-        $app['silex_user.util.user_manipulator'] = function ($app) {
123
+        $app['silex_user.util.user_manipulator'] = function($app) {
124 124
             return new UserManipulator($app['silex_user.user_manager'], $app['dispatcher'], $app['request_stack']);
125 125
         };
126 126
 
127 127
         // Controllers
128
-        $app['silex_user.auth.controller'] = function ($app) {
128
+        $app['silex_user.auth.controller'] = function($app) {
129 129
             return new AuthController($app);
130 130
         };
131 131
 
132
-        $app['silex_user.registration.controller'] = function ($app) {
132
+        $app['silex_user.registration.controller'] = function($app) {
133 133
             return new RegistrationController($app);
134 134
         };
135 135
     }
Please login to merge, or discard this patch.