move into sonardesk
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Enterprise\Console;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Modules\Enterprise\Services\BackupService;
|
||||
|
||||
final class BackupCreateCommand extends Command
|
||||
{
|
||||
protected $signature = 'enterprise:backup';
|
||||
|
||||
protected $description = 'Create a platform backup archive.';
|
||||
|
||||
public function handle(BackupService $service): int
|
||||
{
|
||||
$backup = $service->create();
|
||||
$this->info('Backup created: '.$backup->path);
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user