File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ This requires you to implement several methods::
86
86
87
87
/**
88
88
* Called on every request to decide if this authenticator should be
89
- * used for the request. Returning false will cause this authenticator
89
+ * used for the request. Returning ` false` will cause this authenticator
90
90
* to be skipped.
91
91
*/
92
92
public function supports(Request $request)
@@ -106,7 +106,8 @@ This requires you to implement several methods::
106
106
public function getUser($credentials, UserProviderInterface $userProvider)
107
107
{
108
108
if (null === $credentials) {
109
- // The token header was empty, authentication fails with 401
109
+ // The token header was empty, authentication fails with HTTP Status
110
+ // Code 401 "Unauthorized"
110
111
return null;
111
112
}
112
113
@@ -134,7 +135,7 @@ This requires you to implement several methods::
134
135
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
135
136
{
136
137
$data = [
137
- // you may ant to customize or obfuscate the message first
138
+ // you may want to customize or obfuscate the message first
138
139
'message' => strtr($exception->getMessageKey(), $exception->getMessageData())
139
140
140
141
// or to translate this message
You can’t perform that action at this time.
0 commit comments