- 2.x - sites finishing

This commit is contained in:
Saeed Vaziry
2024-10-06 16:06:51 +02:00
parent 3c50e2c947
commit c24b4b7333
82 changed files with 1250 additions and 345 deletions

View File

@ -114,7 +114,7 @@ public function getContent($lines = null): ?string
return '';
}
public static function log(Server $server, string $type, string $content, ?Site $site = null): void
public static function log(Server $server, string $type, string $content, ?Site $site = null): static
{
$log = new static([
'server_id' => $server->id,
@ -125,6 +125,8 @@ public static function log(Server $server, string $type, string $content, ?Site
]);
$log->save();
$log->write($content);
return $log;
}
public static function make(Server $server, string $type): ServerLog