![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/oneup/uploader-bundle/src/Command/ |
<?php declare(strict_types=1); namespace Oneup\UploaderBundle\Command; use Oneup\UploaderBundle\Uploader\Orphanage\OrphanageManager; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ClearOrphansCommand extends Command { protected static $defaultName = 'oneup:uploader:clear-orphans'; /** * @var OrphanageManager */ private $manager; public function __construct(OrphanageManager $manager) { $this->manager = $manager; parent::__construct(); } protected function configure(): void { $this ->setDescription('Clear orphaned uploads according to the max-age you defined in your configuration.') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $this->manager->clear(); return 0; } }