@@ 177-184 (lines=8) @@ | ||
174 | * |
|
175 | * @return bool |
|
176 | */ |
|
177 | public function install(ApplicationContract $application) |
|
178 | { |
|
179 | $this->getHttpClient()->request('POST', $this->apiUrl($application->type()), [ |
|
180 | 'json' => $application->payload(), |
|
181 | ]); |
|
182 | ||
183 | return true; |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * Install new application on site. |
|
@@ 193-200 (lines=8) @@ | ||
190 | * |
|
191 | * @return bool |
|
192 | */ |
|
193 | public function updateApplication(ApplicationContract $application) |
|
194 | { |
|
195 | $this->getHttpClient()->request('PUT', $this->apiUrl($application->type()), [ |
|
196 | 'json' => $application->payload(), |
|
197 | ]); |
|
198 | ||
199 | return true; |
|
200 | } |
|
201 | ||
202 | /** |
|
203 | * Uninstall application from site. |