@@ 197-204 (lines=8) @@ | ||
194 | * |
|
195 | * @return bool |
|
196 | */ |
|
197 | public function install(ApplicationContract $application) |
|
198 | { |
|
199 | $this->getHttpClient()->request('POST', $this->apiUrl($application->type()), [ |
|
200 | 'json' => $application->payload(), |
|
201 | ]); |
|
202 | ||
203 | return true; |
|
204 | } |
|
205 | ||
206 | /** |
|
207 | * Install new application on site. |
|
@@ 213-220 (lines=8) @@ | ||
210 | * |
|
211 | * @return bool |
|
212 | */ |
|
213 | public function updateApplication(ApplicationContract $application) |
|
214 | { |
|
215 | $this->getHttpClient()->request('PUT', $this->apiUrl($application->type()), [ |
|
216 | 'json' => $application->payload(), |
|
217 | ]); |
|
218 | ||
219 | return true; |
|
220 | } |
|
221 | ||
222 | /** |
|
223 | * Uninstall application from site. |