22 lines
486 B
PHP
22 lines
486 B
PHP
<?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;
|
|
}
|
|
}
|