Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function init() |
|
17 | { |
||
18 | |||
19 | 1 | $container = ContainerService::getInstance()->getContainer(); |
|
20 | 1 | $clientRepository = $container['repository.Client']; |
|
21 | 1 | $accessTokenRepository = $container['repository.AccessToken']; |
|
22 | 1 | $scopeRepository = $container['repository.Scope']; |
|
23 | |||
24 | // Setup the authorization server |
||
25 | 1 | $server = new AuthorizationServer($clientRepository, $accessTokenRepository, $scopeRepository, |
|
26 | 1 | 'file://'.APPLICATION_PATH.'/data/keys/private.key', // path to private key |
|
27 | 1 | 'file://'.APPLICATION_PATH.'/data/keys/public.key' // path to public key |
|
28 | ); |
||
29 | |||
30 | 1 | $this->oauth2Server = $server; |
|
31 | 1 | } |
|
43 |