mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-03 19:24:59 +02:00
22 lines
524 B
PHP
22 lines
524 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 extends PruneCommand
|
|
{
|
|
protected $signature = 'prune:dump {--H|hours=72 : The number of hours to retain dumps}';
|
|
|
|
protected function getAction(): PruneAction
|
|
{
|
|
$hours = $this->option('hours');
|
|
|
|
return new PruneDumpAction(intval($hours));
|
|
}
|
|
}
|