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

24
app/SSH/OS/Composer.php Normal file
View File

@ -0,0 +1,24 @@
<?php
namespace App\SSH\OS;
use App\Exceptions\SSHError;
use App\Models\Site;
class Composer
{
/**
* @throws SSHError
*/
public function installDependencies(Site $site): void
{
$site->server->ssh($site->user)->exec(
view('ssh.composer.composer-install', [
'path' => $site->path,
'phpVersion' => $site->php_version,
]),
'composer-install',
$site->id
);
}
}