mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
init
This commit is contained in:
21
app/Jobs/Site/UpdateVHost.php
Executable file
21
app/Jobs/Site/UpdateVHost.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Site;
|
||||
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Site;
|
||||
|
||||
class UpdateVHost extends Job
|
||||
{
|
||||
protected Site $site;
|
||||
|
||||
public function __construct(Site $site)
|
||||
{
|
||||
$this->site = $site;
|
||||
}
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
$this->site->server->webserver()->handler()->updateVHost($this->site);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user