@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\IUserManager; |
| 29 | 29 | use OCP\Util; |
| 30 | 30 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 31 | -use Symfony\Component\EventDispatcher\GenericEvent; |
|
| 32 | 31 | |
| 33 | 32 | class HookManager { |
| 34 | 33 | |
@@ -115,6 +115,9 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $authKey |
|
| 120 | + */ |
|
| 118 | 121 | protected function sendNewRecord(IUser $user, $publicData, $authKey) { |
| 119 | 122 | $httpClient = $this->clientService->newClient(); |
| 120 | 123 | $response = $httpClient->post($this->lookupServer, |
@@ -135,6 +138,9 @@ discard block |
||
| 135 | 138 | ); |
| 136 | 139 | } |
| 137 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $authKey |
|
| 143 | + */ |
|
| 138 | 144 | protected function updateExistingRecord(IUser $user, $publicData, $authKey) { |
| 139 | 145 | $httpClient = $this->clientService->newClient(); |
| 140 | 146 | $httpClient->put($this->lookupServer, |