Completed
Push — master ( e82fd4...ad54cf )
by Alexis
01:42
created
src/Security/Resources/config/routing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$app->group('', function () {
3
+$app->group('', function() {
4 4
     $this->map(['GET', 'POST'], '/login', 'auth.controller:login')->setName('login');
5 5
     $this->map(['GET', 'POST'], '/register', 'auth.controller:register')->setName('register');
6 6
 })->add($container['guest.middleware']);
Please login to merge, or discard this patch.
app/middleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
3 3
 use Security\Middleware\AuthMiddleware;
4 4
 use Security\Middleware\GuestMiddleware;
5 5
 
6
-$container['guest.middleware'] = function ($container) {
6
+$container['guest.middleware'] = function($container) {
7 7
     return new GuestMiddleware($container['router'], $container['auth']);
8 8
 };
9 9
 
10
-$container['auth.middleware'] = function ($container) {
11
-    return function ($role = null) use ($container) {
10
+$container['auth.middleware'] = function($container) {
11
+    return function($role = null) use ($container) {
12 12
         return new AuthMiddleware($container['router'], $container['flash'], $container['auth'], $role);
13 13
     };
14 14
 };
Please login to merge, or discard this patch.