| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function init() |
||
| 14 | { |
||
| 15 | $container = ContainerService::getInstance()->getContainer(); |
||
| 16 | $accessTokenRepository = $container['repository.AccessToken']; |
||
| 17 | $publicKeyPath = 'file://'.APPLICATION_PATH.'/data/keys/public.key'; |
||
| 18 | $server = new ResourceServer( |
||
| 19 | $accessTokenRepository, |
||
| 20 | $publicKeyPath |
||
| 21 | ); |
||
| 22 | $server->validateAuthenticatedRequest($this->getRequest()); |
||
| 23 | } |
||
| 25 | } |