mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-03 03:05:01 +02:00
22 lines
554 B
PHP
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));
|
|
}
|
|
}
|