1 | <?php |
||
12 | class ScopeRepository implements ScopeRepositoryInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Registry |
||
16 | */ |
||
17 | private $registry; |
||
18 | |||
19 | /** |
||
20 | * @var callable |
||
21 | */ |
||
22 | private $scopeFinalizer; |
||
23 | |||
24 | /** |
||
25 | * @param Registry $registry |
||
26 | * @param callable|null $scopeFinalizer |
||
27 | */ |
||
28 | public function __construct(Registry $registry, callable $scopeFinalizer = null) |
||
33 | |||
34 | /** |
||
35 | * @param string $identifier |
||
36 | * @return ScopeEntity|null |
||
37 | * @throws InvalidStateException |
||
38 | * @throws QueryException |
||
39 | */ |
||
40 | public function getScopeEntityByIdentifier($identifier) |
||
44 | |||
45 | /** |
||
46 | * @param ScopeEntity[] $scopes |
||
47 | * @param string $grantType |
||
48 | * @param ClientEntityInterface $clientEntity |
||
49 | * @param string|null $userIdentifier |
||
50 | * @return ScopeEntity[] |
||
51 | */ |
||
52 | public function finalizeScopes( |
||
61 | |||
62 | /** |
||
63 | * @return ScopeQuery |
||
64 | */ |
||
65 | protected function createQuery(): ScopeQuery |
||
69 | } |
||
70 |