1 | <?php |
||
24 | final class OauthScopeRepository implements ScopeRepositoryInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var DqlQueryBuilderInterface |
||
28 | */ |
||
29 | private $dqlQueryBuilder; |
||
30 | |||
31 | /** |
||
32 | * @var QueryServiceRouterInterface |
||
33 | */ |
||
34 | private $queryService; |
||
35 | |||
36 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getScopeEntityByIdentifier($identifier): ?ScopeEntityInterface |
||
51 | |||
52 | /** |
||
53 | * Given a client, grant type and optional user identifier validate the set of scopes requested are valid and |
||
54 | * optionally append additional scopes or remove requested scopes. |
||
55 | * |
||
56 | * @param ScopeEntityInterface[] $scopes |
||
57 | * @param string $grantType |
||
58 | * @param string|null $userIdentifier |
||
59 | * |
||
60 | * @return ScopeEntityInterface[] |
||
61 | */ |
||
62 | public function finalizeScopes( |
||
78 | |||
79 | private function find(string $oauthScopeId): ?OauthScope |
||
92 | } |
||
93 |