[!!!][TASK] Migrate Lowlevel "double_files" command to Symfony Console
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / Configuration / Commands.php
1 <?php
2 /**
3 * Commands to be executed by typo3, where the key of the array
4 * is the name of the command (to be called as the first argument after typo3).
5 * Required parameter is the "class" of the command which needs to be a subclass
6 * of Symfony/Console/Command. An optional parameter is "user" that logs in
7 * a Backend user via CLI.
8 */
9 return [
10 'syslog:list' => [
11 'class' => \TYPO3\CMS\Lowlevel\Command\ListSysLogCommand::class
12 ],
13 'cleanup:missingfiles' => [
14 'class' => \TYPO3\CMS\Lowlevel\Command\MissingFilesCommand::class,
15 // needed for updating the reference index (optional)
16 'user' => '_cli_lowlevel'
17 ],
18 'cleanup:lostfiles' => [
19 'class' => \TYPO3\CMS\Lowlevel\Command\LostFilesCommand::class,
20 // needed for updating the reference index (optional)
21 'user' => '_cli_lowlevel'
22 ],
23 'cleanup:multiplereferencedfiles' => [
24 'class' => \TYPO3\CMS\Lowlevel\Command\FilesWithMultipleReferencesCommand::class,
25 // needed for updating the reference index (optional)
26 'user' => '_cli_lowlevel'
27 ],
28 'cleanup:missingrelations' => [
29 'class' => \TYPO3\CMS\Lowlevel\Command\MissingRelationsCommand::class,
30 // needed for updating the reference index (optional)
31 'user' => '_cli_lowlevel'
32 ],
33 'cleanup:deletedrecords' => [
34 'class' => \TYPO3\CMS\Lowlevel\Command\DeletedRecordsCommand::class,
35 'user' => '_cli_lowlevel'
36 ],
37 'cleanup:orphanrecords' => [
38 'class' => \TYPO3\CMS\Lowlevel\Command\OrphanRecordsCommand::class,
39 'user' => '_cli_lowlevel'
40 ],
41 'cleanup:flexforms' => [
42 'class' => \TYPO3\CMS\Lowlevel\Command\CleanFlexFormsCommand::class,
43 'user' => '_cli_lowlevel'
44 ]
45 ];