Skip to content

Commit 62b092a

Browse files
committed
Updated README example.
1 parent d50425d commit 62b092a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

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

84-
return (new Authentication($app, [
85-
'challenge' => $challenge,
86-
'check' => $check,
87-
'authenticate' => $authenticate,
88-
'anonymous' => true, // default: false
89-
]))
90-
->handle($request, $type, $catch);
84+
$app = new Authentication($app, [
85+
'challenge' => $challenge,
86+
'check' => $check,
87+
'authenticate' => $authenticate,
88+
'anonymous' => true, // default: false
89+
]);
9190
```
9291

9392
### WwwAuthenticateStackChallenge Middleware

0 commit comments

Comments
 (0)