Skip to content

Deprecation: #85977 - Extbase CLI functionality, Command Controllers and @cli Annotation

ext_localconf.php Access to array key "commandControllers"

16: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'T3o\\Randombanners\\Command\\MonthlyCommandController';

** strong Classes/Command/MonthlyCommandController.php Usage of class "TYPO3\CMS\Extbase\Mvc\Controller\CommandController"**

20: class MonthlyCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController {

Migration

Migrate custom commands within CommandControllers as symfony commands as TYPO3 Core does. Use specific argument definitions on what parameters will be available.

See documentation https://symfony.com/doc/current/console.html and https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/BackendModules/CliScripts/Index.html for detailed descriptions on how to write Console Commands and how to integrate them into TYPO3.

AC:

  • Refactor the command controller to symfony command
Edited by Stefan Busemann
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information