| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 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.') |
||
| 25 | ->addArgument('cache-adapter', InputArgument::OPTIONAL, 'Cache adapter to use.'); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | */ |
||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 52 | } |
||
| 53 | } |
||
| 54 |