Files
animethemes-server/app/Console/Commands/Storage/Admin/DumpPruneCommand.php
T
2026-03-23 15:31:57 -03:00

22 lines
554 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;
use Illuminate\Console\Attributes\Signature;
#[Signature('prune:dump {--H|hours=72 : The number of hours to retain dumps}')]
class DumpPruneCommand extends PruneCommand
{
protected function getAction(): PruneAction
{
$hours = $this->option('hours');
return new PruneDumpAction(intval($hours));
}
}