@@ 187-194 (lines=8) @@ | ||
184 | * |
|
185 | * @return bool |
|
186 | */ |
|
187 | public function install(ApplicationContract $application) |
|
188 | { |
|
189 | $this->getHttpClient()->request('POST', $this->apiUrl($application->type()), [ |
|
190 | 'json' => $application->payload(), |
|
191 | ]); |
|
192 | ||
193 | return true; |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * Install new application on site. |
|
@@ 203-210 (lines=8) @@ | ||
200 | * |
|
201 | * @return bool |
|
202 | */ |
|
203 | public function updateApplication(ApplicationContract $application) |
|
204 | { |
|
205 | $this->getHttpClient()->request('PUT', $this->apiUrl($application->type()), [ |
|
206 | 'json' => $application->payload(), |
|
207 | ]); |
|
208 | ||
209 | return true; |
|
210 | } |
|
211 | ||
212 | /** |
|
213 | * Uninstall application from site. |