Skip to content

Commit e4800b8

Browse files
committed
Better example in README
1 parent f9dcdc7 commit e4800b8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,11 @@ $authenticate = function (HttpKernelInterface $app, $anonymous) {
8282
// * MUST return a response
8383
};
8484

85-
return (new Firewall($app, [
86-
'challenge' => $challenge,
87-
'authenticate' => $authenticate,
88-
'firewall' => $firewall,
89-
]))
90-
->handle($request, $type, $catch);
85+
$app = new Firewall($app, [
86+
'challenge' => $challenge,
87+
'authenticate' => $authenticate,
88+
'firewall' => $firewall,
89+
]);
9190
```
9291

9392

0 commit comments

Comments
 (0)