MissingFilesCommand

final class \TYPO3\CMS\Lowlevel\Command\MissingFilesCommand

Extends
Command

Removes the database records of indexed files that have been flagged as missing by the storage indexer and that are no longer referenced by any record, the same way FileDeletionAspect does for files deleted via FAL.

Attributes

#[AsCommand]
'cleanup:missingfiles'
'Removes database records of indexed files that are flagged as missing and no longer referenced'

Table of Contents

Methods

__construct()  : mixed
configure()  : void
execute()  : int

Methods

__construct()

public __construct(ConnectionPool $connectionPool, ReferenceIndex $referenceIndex, StorageRepository $storageRepository, ResourceFactory $resourceFactory, FileIndexRepository $fileIndexRepository, MetaDataRepository $metaDataRepository, ProcessedFileRepository $processedFileRepository) : mixed

Parameters

$connectionPool : ConnectionPool
$referenceIndex : ReferenceIndex
$storageRepository : StorageRepository
$resourceFactory : ResourceFactory
$fileIndexRepository : FileIndexRepository
$metaDataRepository : MetaDataRepository
$processedFileRepository : ProcessedFileRepository

execute()

protected execute(InputInterface $input, OutputInterface $output) : int

Parameters

$input : InputInterface
$output : OutputInterface

Return values

int
On this page