mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-25 16:24:35 +02:00
* feat(admin): migrate db dumps from github to platform * style: fix StyleCI findings
35 lines
739 B
PHP
35 lines
739 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Console\Commands\Storage\Admin;
|
|
|
|
use App\Actions\Storage\Admin\Dump\PruneDumpAction;
|
|
use App\Actions\Storage\Base\PruneAction;
|
|
use App\Console\Commands\Storage\Base\PruneCommand;
|
|
|
|
/**
|
|
* Class DumpPruneCommand.
|
|
*/
|
|
class DumpPruneCommand extends PruneCommand
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'prune:dump {--H|hours=72 : The number of hours to retain dumps}';
|
|
|
|
/**
|
|
* Get the underlying action.
|
|
*
|
|
* @return PruneAction
|
|
*/
|
|
protected function getAction(): PruneAction
|
|
{
|
|
$hours = $this->option('hours');
|
|
|
|
return new PruneDumpAction(intval($hours));
|
|
}
|
|
}
|