Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class ExpirationCommand extends Command |
||
12 | { |
||
13 | /** @var TusServer */ |
||
14 | protected $server; |
||
15 | |||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | protected function configure() |
||
20 | { |
||
21 | $this |
||
22 | ->setName('tus:expired') |
||
23 | ->setDescription('Remove expired uploads.') |
||
24 | ->setHelp('Deletes all expired uploads to free server resources. Values can be redis or file. Defaults to file.') |
||
25 | ->addArgument( |
||
26 | 'cache-adapter', |
||
27 | InputArgument::OPTIONAL, |
||
28 | 'Cache adapter to use, redis or file. Optional, defaults to file based cache.' |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | */ |
||
35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
56 | } |
||
57 | } |
||
58 |