‪TYPO3CMS  9.5
ExtensionCommandController.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
20 
27 {
31  protected ‪$requestAdminPermissions = true;
32 
36  protected ‪$signalSlotDispatcher;
37 
42  {
43  $this->signalSlotDispatcher = ‪$signalSlotDispatcher;
44  }
45 
56  public function ‪installCommand($extensionKey)
57  {
58  trigger_error('Calling ExtensionCommandController->installCommand() will be removed in TYPO3 v10.0. Use the Symfony command "extension:activate" instead, to be called via the "typo3" CLI entrypoint.', E_USER_DEPRECATED);
60 
62  $service = $this->objectManager->get(\‪TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class);
63  $service->install($extensionKey);
64  }
65 
76  public function ‪uninstallCommand($extensionKey)
77  {
78  trigger_error('Calling ExtensionCommandController->uninstallCommand() will be removed in TYPO3 v10.0. Use the Symfony command "extension:deactivate" instead, to be called via the "typo3" CLI entrypoint.', E_USER_DEPRECATED);
80  $service = $this->objectManager->get(\‪TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class);
81  $service->uninstall($extensionKey);
82  }
83 
94  {
95  trigger_error('Calling ExtensionCommandController->dumpClassLoadingInformationCommand() will be removed in TYPO3 v10.0. Use the Symfony command "dumpautoload" instead, to be called via the "typo3" CLI entrypoint.', E_USER_DEPRECATED);
97  $this->‪output->outputLine('<error>Class loading information is managed by composer. Use "composer dump-autoload" command to update the information.</error>');
98  $this->‪quit(1);
99  } else {
101  $this->‪output->outputLine('Class Loading information has been updated.');
102  }
103  }
104 
108  protected function ‪emitPackagesMayHaveChangedSignal()
109  {
110  $this->signalSlotDispatcher->dispatch('PackageManagement', 'packagesMayHaveChanged');
111  }
112 }
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\injectSignalSlotDispatcher
‪injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
Definition: ExtensionCommandController.php:39
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\dumpClassLoadingInformationCommand
‪dumpClassLoadingInformationCommand()
Definition: ExtensionCommandController.php:91
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\uninstallCommand
‪uninstallCommand($extensionKey)
Definition: ExtensionCommandController.php:74
‪TYPO3\CMS\Core\Core\ClassLoadingInformation\dumpClassLoadingInformation
‪static dumpClassLoadingInformation()
Definition: ClassLoadingInformation.php:87
‪TYPO3\CMS\Extbase\Mvc\Controller\CommandController\quit
‪quit($exitCode=0)
Definition: CommandController.php:306
‪TYPO3\CMS\Core\Core\ClassLoadingInformation
Definition: ClassLoadingInformation.php:32
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\$signalSlotDispatcher
‪TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
Definition: ExtensionCommandController.php:34
‪TYPO3\CMS\Extensionmanager\Command
Definition: ActivateExtensionCommand.php:3
‪TYPO3\CMS\Extbase\Mvc\Controller\CommandController\output
‪output($text, array $arguments=[])
Definition: CommandController.php:268
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController
Definition: ExtensionCommandController.php:27
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\installCommand
‪installCommand($extensionKey)
Definition: ExtensionCommandController.php:54
‪TYPO3\CMS\Core\Core\Environment\isComposerMode
‪static bool isComposerMode()
Definition: Environment.php:117
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:39
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\emitPackagesMayHaveChangedSignal
‪emitPackagesMayHaveChangedSignal()
Definition: ExtensionCommandController.php:106
‪TYPO3\CMS\Extbase\Mvc\Controller\CommandController
Definition: CommandController.php:37
‪TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController\$requestAdminPermissions
‪bool $requestAdminPermissions
Definition: ExtensionCommandController.php:30
‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher
Definition: Dispatcher.php:28