Deprecation: #85996 - ExtensionManager CommandController

See Issue #85996

Description

The following Extension Manager CLI commands have been reimplemented internally with Symfony console commands:

  • extensionmanager:extension:install , now extension:activate
  • extensionmanager:extension:uninstall , now extension:deactivate
  • extensionmanager:extension:dumpclassloadinginformation , now dumpautoload

The left-over command controller PHP class TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController is not in use anymore, and therefore has been marked as deprecated.

Impact

Calling any of the commands within the PHP class will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

TYPO3 installations that extend the command controller directly in extensions are affected by this change. Installations simply using the CLI entrypoint are not affected.

Migration

  • use extension:activate instead of extensionmanager:extension:install
  • use extension:deactivate instead of extensionmanager:extension:uninstall
  • use dumpautoload instead of extensionmanager:extension:dumpclassloadinginformation

In order to achieve the same functionality within custom PHP code, it is recommended to use the underlying logic within the commands instead of calling or extending the command controller class.