‪TYPO3CMS  ‪main
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->setName('dumpautoload');
38  $this->setDescription('Updates class loading information in non-composer mode.');
39  $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.');
40  $this->setAliases([
41  'extensionmanager:extension:dumpclassloadinginformation',
42  'extension:dumpclassloadinginformation',
43  ]);
44  }
45 
49  public function ‪isEnabled(): bool
50  {
52  }
53 
57  protected function ‪execute(InputInterface $input, OutputInterface ‪$output): int
58  {
59  $io = new SymfonyStyle($input, ‪$output);
61  $io->success('Class loading information has been updated.');
62  return Command::SUCCESS;
63  }
64 }
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand
Definition: DumpAutoloadCommand.php:31
‪TYPO3\CMS\Core\Core\Environment\isComposerMode
‪static isComposerMode()
Definition: Environment.php:137
‪TYPO3\CMS\Core\Core\ClassLoadingInformation\dumpClassLoadingInformation
‪static dumpClassLoadingInformation()
Definition: ClassLoadingInformation.php:89
‪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:114
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\execute
‪execute(InputInterface $input, OutputInterface $output)
Definition: DumpAutoloadCommand.php:57
‪TYPO3\CMS\Core\Command
Definition: CacheFlushCommand.php:18
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:41
‪TYPO3\CMS\Core\Command\DumpAutoloadCommand\isEnabled
‪isEnabled()
Definition: DumpAutoloadCommand.php:49