mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-17 17:01:37 +00:00
22 lines
346 B
PHP
Executable File
22 lines
346 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Jobs\Site;
|
|
|
|
use App\Jobs\Job;
|
|
use App\Models\Site;
|
|
|
|
class CreateVHost extends Job
|
|
{
|
|
protected Site $site;
|
|
|
|
public function __construct(Site $site)
|
|
{
|
|
$this->site = $site;
|
|
}
|
|
|
|
public function handle(): void
|
|
{
|
|
$this->site->server->webserver()->handler()->createVHost($this->site);
|
|
}
|
|
}
|