|
8 | 8 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface" /> |
9 | 9 | </service> |
10 | 10 | <service id="trikoder.oauth2.league.repository.client_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\ClientRepository" /> |
| 11 | + <service id="League\OAuth2\Server\Repositories\ClientRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\ClientRepository" /> |
11 | 12 |
|
12 | 13 | <service id="Trikoder\Bundle\OAuth2Bundle\League\Repository\AccessTokenRepository"> |
13 | 14 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\AccessTokenManagerInterface" /> |
14 | 15 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface" /> |
15 | 16 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Converter\ScopeConverter" /> |
16 | 17 | </service> |
17 | 18 | <service id="trikoder.oauth2.league.repository.access_token_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\AccessTokenRepository" /> |
| 19 | + <service id="League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\AccessTokenRepository" /> |
18 | 20 |
|
19 | 21 | <service id="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository"> |
20 | 22 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\RefreshTokenManagerInterface" /> |
21 | 23 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\AccessTokenManagerInterface" /> |
22 | 24 | </service> |
23 | 25 | <service id="trikoder.oauth2.league.repository.refresh_token_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository" /> |
| 26 | + <service id="League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository" /> |
24 | 27 |
|
25 | 28 | <service id="Trikoder\Bundle\OAuth2Bundle\League\Repository\ScopeRepository"> |
26 | 29 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\ScopeManagerInterface" /> |
|
29 | 32 | <argument type="service" id="Symfony\Component\EventDispatcher\EventDispatcherInterface" /> |
30 | 33 | </service> |
31 | 34 | <service id="trikoder.oauth2.league.repository.scope_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\ScopeRepository" /> |
| 35 | + <service id="League\OAuth2\Server\Repositories\ScopeRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\ScopeRepository" /> |
32 | 36 |
|
33 | 37 | <service id="Trikoder\Bundle\OAuth2Bundle\League\Repository\UserRepository"> |
34 | 38 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface" /> |
35 | 39 | <argument type="service" id="Symfony\Component\EventDispatcher\EventDispatcherInterface" /> |
36 | 40 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Converter\UserConverter" /> |
37 | 41 | </service> |
38 | 42 | <service id="trikoder.oauth2.league.repository.user_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\UserRepository" /> |
| 43 | + <service id="League\OAuth2\Server\Repositories\UserRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\UserRepository" /> |
39 | 44 |
|
40 | 45 | <service id="Trikoder\Bundle\OAuth2Bundle\League\Repository\AuthCodeRepository"> |
41 | 46 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\AuthorizationCodeManagerInterface" /> |
42 | 47 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface" /> |
43 | 48 | <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\Converter\ScopeConverter" /> |
44 | 49 | </service> |
45 | 50 | <service id="trikoder.oauth2.league.repository.auth_code_repository" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\AuthCodeRepository" /> |
| 51 | + <service id="League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface" alias="Trikoder\Bundle\OAuth2Bundle\League\Repository\AuthCodeRepository" /> |
46 | 52 |
|
47 | 53 | <!-- Security layer --> |
48 | 54 | <service id="Trikoder\Bundle\OAuth2Bundle\Security\Authentication\Provider\OAuth2Provider"> |
|
63 | 69 |
|
64 | 70 | <!-- The league authorization server --> |
65 | 71 | <service id="League\OAuth2\Server\AuthorizationServer"> |
66 | | - <argument key="$clientRepository" type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\ClientRepository" /> |
67 | | - <argument key="$accessTokenRepository" type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\AccessTokenRepository" /> |
68 | | - <argument key="$scopeRepository" type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\ScopeRepository" /> |
| 72 | + <argument key="$clientRepository" type="service" id="League\OAuth2\Server\Repositories\ClientRepositoryInterface" /> |
| 73 | + <argument key="$accessTokenRepository" type="service" id="League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface" /> |
| 74 | + <argument key="$scopeRepository" type="service" id="League\OAuth2\Server\Repositories\ScopeRepositoryInterface" /> |
69 | 75 | <argument key="$privateKey" /> |
70 | 76 | <argument key="$encryptionKey" /> |
71 | 77 | </service> |
72 | 78 | <service id="league.oauth2.server.authorization_server" alias="League\OAuth2\Server\AuthorizationServer" /> |
73 | 79 |
|
74 | 80 | <!-- The league resource server --> |
75 | 81 | <service id="League\OAuth2\Server\ResourceServer"> |
76 | | - <argument key="$accessTokenRepository" type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\AccessTokenRepository" /> |
| 82 | + <argument key="$accessTokenRepository" type="service" id="League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface" /> |
77 | 83 | <argument key="$publicKey" /> |
78 | 84 | </service> |
79 | 85 | <service id="league.oauth2.server.resource_server" alias="League\OAuth2\Server\ResourceServer" /> |
|
83 | 89 | <service id="league.oauth2.server.grant.client_credentials_grant" alias="League\OAuth2\Server\Grant\ClientCredentialsGrant" /> |
84 | 90 |
|
85 | 91 | <service id="League\OAuth2\Server\Grant\PasswordGrant"> |
86 | | - <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\UserRepository" /> |
87 | | - <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository" /> |
| 92 | + <argument type="service" id="League\OAuth2\Server\Repositories\UserRepositoryInterface" /> |
| 93 | + <argument type="service" id="League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface" /> |
88 | 94 | </service> |
89 | 95 | <service id="league.oauth2.server.grant.password_grant" alias="League\OAuth2\Server\Grant\PasswordGrant" /> |
90 | 96 |
|
91 | 97 | <service id="League\OAuth2\Server\Grant\RefreshTokenGrant"> |
92 | | - <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository" /> |
| 98 | + <argument type="service" id="League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface" /> |
93 | 99 | </service> |
94 | 100 | <service id="league.oauth2.server.grant.refresh_token_grant" alias="League\OAuth2\Server\Grant\RefreshTokenGrant" /> |
95 | 101 |
|
96 | 102 | <service id="League\OAuth2\Server\Grant\AuthCodeGrant" > |
97 | | - <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\AuthCodeRepository" /> |
98 | | - <argument type="service" id="Trikoder\Bundle\OAuth2Bundle\League\Repository\RefreshTokenRepository" /> |
| 103 | + <argument type="service" id="League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface" /> |
| 104 | + <argument type="service" id="League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface" /> |
99 | 105 | <argument key="$authCodeTTL" /> |
100 | 106 | </service> |
101 | 107 | <service id="league.oauth2.server.grant.auth_code_grant" alias="League\OAuth2\Server\Grant\AuthCodeGrant" /> |
|
0 commit comments