‪TYPO3CMS  9.5
DumpAutoloadCommand.php
Go to the documentation of this file.
1 <?php
2 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 
18 use Symfony\Component\Console\Command\Command;
19 use Symfony\Component\Console\Input\InputInterface;
20 use Symfony\Component\Console\Output\OutputInterface;
21 use Symfony\Component\Console\Style\SymfonyStyle;
24 
28 class ‪DumpAutoloadCommand extends Command
29 {
33  protected function ‪configure()
34  {
35  $this->setDescription('Updates class loading information in non-composer mode.');
36  $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.');
37  $this->setAliases([
38  'extensionmanager:extension:dumpclassloadinginformation',
39  'extension:dumpclassloadinginformation'
40  ]);
41  }
42 
48  public function ‪isEnabled()
49  {
51  }
52 
58  protected function ‪execute(InputInterface $input, OutputInterface ‪$output)
59  {
60  $io = new SymfonyStyle($input, ‪$output);
62  $io->success('Class loading information has been updated.');
63  }
64 }
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand
Definition: DumpAutoloadCommand.php:29
‪TYPO3\CMS\Core\Core\ClassLoadingInformation\dumpClassLoadingInformation
‪static dumpClassLoadingInformation()
Definition: ClassLoadingInformation.php:87
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\configure
‪configure()
Definition: DumpAutoloadCommand.php:33
‪TYPO3\CMS\Core\Core\ClassLoadingInformation
Definition: ClassLoadingInformation.php:32
‪$output
‪$output
Definition: annotationChecker.php:113
‪TYPO3\CMS\Core\Core\Environment\isComposerMode
‪static bool isComposerMode()
Definition: Environment.php:117
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\execute
‪execute(InputInterface $input, OutputInterface $output)
Definition: DumpAutoloadCommand.php:58
‪TYPO3\CMS\Core\Command
Definition: DumpAutoloadCommand.php:3
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:39
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\isEnabled
‪isEnabled()
Definition: DumpAutoloadCommand.php:48