‪TYPO3CMS  10.4
DumpAutoloadCommand.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Symfony\Component\Console\Command\Command;
21 use Symfony\Component\Console\Input\InputInterface;
22 use Symfony\Component\Console\Output\OutputInterface;
23 use Symfony\Component\Console\Style\SymfonyStyle;
26 
30 class ‪DumpAutoloadCommand extends Command
31 {
35  protected function ‪configure()
36  {
37  $this->setDescription('Updates class loading information in non-composer mode.');
38  $this->setHelp('This command is only needed during development. The extension manager takes care of creating or updating this info properly during extension (de-)activation.');
39  $this->setAliases([
40  'extensionmanager:extension:dumpclassloadinginformation',
41  'extension:dumpclassloadinginformation'
42  ]);
43  }
44 
50  public function ‪isEnabled()
51  {
53  }
54 
60  protected function ‪execute(InputInterface $input, OutputInterface ‪$output)
61  {
62  $io = new SymfonyStyle($input, ‪$output);
64  $io->success('Class loading information has been updated.');
65  return 0;
66  }
67 }
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand
Definition: DumpAutoloadCommand.php:31
‪TYPO3\CMS\Core\Core\ClassLoadingInformation\dumpClassLoadingInformation
‪static dumpClassLoadingInformation()
Definition: ClassLoadingInformation.php:90
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\configure
‪configure()
Definition: DumpAutoloadCommand.php:35
‪TYPO3\CMS\Core\Core\ClassLoadingInformation
Definition: ClassLoadingInformation.php:35
‪$output
‪$output
Definition: annotationChecker.php:119
‪TYPO3\CMS\Core\Core\Environment\isComposerMode
‪static bool isComposerMode()
Definition: Environment.php:144
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\execute
‪execute(InputInterface $input, OutputInterface $output)
Definition: DumpAutoloadCommand.php:60
‪TYPO3\CMS\Core\Command
Definition: DumpAutoloadCommand.php:18
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:40
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\isEnabled
‪isEnabled()
Definition: DumpAutoloadCommand.php:50