‪TYPO3CMS  ‪main
TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand:

Public Member Functions

 __construct (private readonly EventDispatcherInterface $eventDispatcher, private readonly InstallUtility $installUtility)
 
 isEnabled ()
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 

Detailed Description

Command for activating an existing extension via CLI.

Definition at line 34 of file ActivateExtensionCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand::__construct ( private readonly EventDispatcherInterface  $eventDispatcher,
private readonly InstallUtility  $installUtility 
)

Definition at line 36 of file ActivateExtensionCommand.php.

Member Function Documentation

◆ configure()

TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand::configure ( )
protected

Defines the allowed options for this command

Definition at line 54 of file ActivateExtensionCommand.php.

◆ execute()

TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Installs an extension

Definition at line 70 of file ActivateExtensionCommand.php.

References $output, and TYPO3\CMS\Core\Core\Bootstrap\initializeBackendAuthentication().

◆ isEnabled()

TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand::isEnabled ( )

This command is not needed in composer mode.

Definition at line 46 of file ActivateExtensionCommand.php.

References TYPO3\CMS\Core\Core\Environment\isComposerMode().