chore(operations): remove legacy-era platform-operations sources

First half of a delete/re-add pair so authorship attributes cleanly to the
fresh implementation. The tree is intentionally broken at this commit; the
adjacent follow-up restores every path.
This commit is contained in:
Darko Gjorgjijoski
2026-08-20 18:30:12 +02:00
parent 1f45b3a8d0
commit a1828fac52
31 changed files with 0 additions and 2569 deletions
@@ -1,35 +0,0 @@
<?php
namespace App\Platform\Operations\Update;
use App\Platform\Operations\Models\Setting;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
trait CallsReleaseServer
{
protected static function getRemote($url, $data = [], $token = null)
{
$client = new Client(['verify' => true, 'base_uri' => config('invoiceshelf.base_url').'/']);
$headers['headers'] = [
'Accept' => 'application/json',
'Referer' => url('/'),
'Authorization' => "Bearer {$token}",
'invoiceshelf' => Setting::getSetting('version'),
];
$data['http_errors'] = false;
$data = array_merge($data, $headers);
try {
$result = $client->get($url, $data);
} catch (GuzzleException $e) {
$result = null;
}
return $result;
}
}