@@ 43-57 (lines=15) @@ | ||
40 | /** @var OAuthServer */ |
|
41 | protected $server; |
|
42 | ||
43 | public function __construct(TemplateManagerInterface $templateManager, ClientStorageInterface $clientStorage, ResourceServerStorageInterface $resourceServerStorage, ApprovalStorageInterface $approvalStorage, AuthorizationCodeStorageInterface $authorizationCodeStorage, AccessTokenStorageInterface $accessTokenStorage, array $options = [], IO $io = null) |
|
44 | { |
|
45 | $this->templateManager = $templateManager; |
|
46 | $this->options = array_merge($this->options, $options); |
|
47 | ||
48 | $this->server = new OAuthServer( |
|
49 | $clientStorage, |
|
50 | $resourceServerStorage, |
|
51 | $approvalStorage, |
|
52 | $authorizationCodeStorage, |
|
53 | $accessTokenStorage, |
|
54 | $this->options, |
|
55 | $io |
|
56 | ); |
|
57 | } |
|
58 | ||
59 | public function init(Service $service) |
|
60 | { |
@@ 42-59 (lines=18) @@ | ||
39 | /** @var OAuthServer */ |
|
40 | protected $server; |
|
41 | ||
42 | public function __construct(TemplateManagerInterface $templateManager, ClientStorageInterface $clientStorage, ResourceServerStorageInterface $resourceServerStorage, ApprovalStorageInterface $approvalStorage, AuthorizationCodeStorageInterface $authorizationCodeStorage, AccessTokenStorageInterface $accessTokenStorage, array $options = [], IO $io = null) |
|
43 | { |
|
44 | parent::__construct(); |
|
45 | ||
46 | $this->templateManager = $templateManager; |
|
47 | $this->options = array_merge($this->options, $options); |
|
48 | ||
49 | $this->server = new OAuthServer( |
|
50 | $clientStorage, |
|
51 | $resourceServerStorage, |
|
52 | $approvalStorage, |
|
53 | $authorizationCodeStorage, |
|
54 | $accessTokenStorage, |
|
55 | $this->options, |
|
56 | $io |
|
57 | ); |
|
58 | $this->registerRoutes(); |
|
59 | } |
|
60 | ||
61 | private function registerRoutes() |
|
62 | { |