We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405157b commit 4f152cdCopy full SHA for 4f152cd
security/custom_authenticator.rst
@@ -355,7 +355,7 @@ authenticator methods (e.g. ``createToken()``)::
355
{
356
// ...
357
358
- public function authenticate(Request $request): PassportInterface
+ public function authenticate(Request $request): Passport
359
360
// ... process the request
361
@@ -367,7 +367,7 @@ authenticator methods (e.g. ``createToken()``)::
367
return $passport;
368
}
369
370
- public function createToken(PassportInterface $passport, string $firewallName): TokenInterface
+ public function createToken(Passport $passport, string $firewallName): TokenInterface
371
372
// read the attribute value
373
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
0 commit comments