| @@ 167-174 (lines=8) @@ | ||
| 164 | * |
|
| 165 | * @return bool |
|
| 166 | */ |
|
| 167 | public function install(ApplicationContract $application) |
|
| 168 | { |
|
| 169 | $this->getHttpClient()->request('POST', $this->apiUrl($application->type()), [ |
|
| 170 | 'json' => $application->payload(), |
|
| 171 | ]); |
|
| 172 | ||
| 173 | return true; |
|
| 174 | } |
|
| 175 | ||
| 176 | /** |
|
| 177 | * Install new application on site. |
|
| @@ 183-190 (lines=8) @@ | ||
| 180 | * |
|
| 181 | * @return bool |
|
| 182 | */ |
|
| 183 | public function updateApplication(ApplicationContract $application) |
|
| 184 | { |
|
| 185 | $this->getHttpClient()->request('PUT', $this->apiUrl($application->type()), [ |
|
| 186 | 'json' => $application->payload(), |
|
| 187 | ]); |
|
| 188 | ||
| 189 | return true; |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * Uninstall application from site. |
|