Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -5,6 +5,7 @@
use App\Exceptions\SSHConnectionError;
use App\Helpers\SSH;
use App\Models\Server;
use App\Models\ServerLog;
use Illuminate\Support\Traits\ReflectsClosures;
use PHPUnit\Framework\Assert;
@ -53,8 +54,8 @@ public function connect(bool $sftp = false): void
public function exec(string $command, string $log = '', ?int $siteId = null, ?bool $stream = false, ?callable $streamCallback = null): string
{
if (! $this->log instanceof \App\Models\ServerLog && $log) {
/** @var \App\Models\ServerLog $log */
if (! $this->log instanceof ServerLog && $log) {
/** @var ServerLog $log */
$log = $this->server->logs()->create([
'site_id' => $siteId,
'name' => $this->server->id.'-'.strtotime('now').'-'.$log.'.log',