Deprecation: #85996 - ExtensionManager CommandController¶
See forge#85996
Description¶
The following Extension Manager CLI commands have been reimplemented internally with Symfony console commands:
extensionmanager:extension:install
, nowextension:activate
extensionmanager:extension:uninstall
, nowextension:deactivate
extensionmanager:extension:dumpclassloadinginformation
, nowdumpautoload
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 ofextensionmanager:extension:install
use
extension:deactivate
instead ofextensionmanager:extension:uninstall
use
dumpautoload
instead ofextensionmanager: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.