mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
refactoring - remove unused code
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Jobs\Ssl;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Ssl;
|
||||
|
||||
@ -19,21 +18,11 @@ public function handle(): void
|
||||
{
|
||||
$this->ssl->site->server->webserver()->handler()->removeSSL($this->ssl);
|
||||
$this->ssl->delete();
|
||||
event(
|
||||
new Broadcast('remove-ssl-finished', [
|
||||
'ssl' => $this->ssl,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
$this->ssl->status = 'failed';
|
||||
$this->ssl->save();
|
||||
event(
|
||||
new Broadcast('remove-ssl-failed', [
|
||||
'ssl' => $this->ssl,
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user