6
6
7
7
use League \Bundle \OAuth2ServerBundle \Model \ClientInterface ;
8
8
use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
9
- use League \OAuth2 \Server \RequestTypes \AuthorizationRequest ;
9
+ use League \OAuth2 \Server \RequestTypes \AuthorizationRequestInterface ;
10
10
use Symfony \Component \HttpFoundation \Response ;
11
11
use Symfony \Component \Security \Core \User \UserInterface ;
12
12
use Symfony \Contracts \EventDispatcher \Event ;
@@ -17,7 +17,7 @@ final class AuthorizationRequestResolveEvent extends Event
17
17
public const AUTHORIZATION_DENIED = false ;
18
18
19
19
/**
20
- * @var AuthorizationRequest
20
+ * @var AuthorizationRequestInterface
21
21
*/
22
22
private $ authorizationRequest ;
23
23
@@ -49,7 +49,7 @@ final class AuthorizationRequestResolveEvent extends Event
49
49
/**
50
50
* @param Scope[] $scopes
51
51
*/
52
- public function __construct (AuthorizationRequest $ authorizationRequest , array $ scopes , ClientInterface $ client )
52
+ public function __construct (AuthorizationRequestInterface $ authorizationRequest , array $ scopes , ClientInterface $ client )
53
53
{
54
54
$ this ->authorizationRequest = $ authorizationRequest ;
55
55
$ this ->scopes = $ scopes ;
@@ -137,12 +137,12 @@ public function getState(): ?string
137
137
return $ this ->authorizationRequest ->getState ();
138
138
}
139
139
140
- public function getCodeChallenge (): string
140
+ public function getCodeChallenge (): ? string
141
141
{
142
142
return $ this ->authorizationRequest ->getCodeChallenge ();
143
143
}
144
144
145
- public function getCodeChallengeMethod (): string
145
+ public function getCodeChallengeMethod (): ? string
146
146
{
147
147
return $ this ->authorizationRequest ->getCodeChallengeMethod ();
148
148
}
0 commit comments