‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Command\CoreCommand Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Command\CoreCommand:

Public Member Functions

 setApplication (Application $application=null)
 

Protected Member Functions

 configure ()
 

Protected Attributes

Bootstrap $extbaseBootstrap
 

Detailed Description

Main call to register any Extbase command from Extbase command controllers

Fetches all registered Extbase commands and adds them to the application as custom Extbase commands

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0. Use symfony/console commands instead.

Definition at line 32 of file CoreCommand.php.

Member Function Documentation

◆ configure()

TYPO3\CMS\Extbase\Command\CoreCommand::configure ( )
protected

Configure the command, since this is a command

Definition at line 41 of file CoreCommand.php.

◆ setApplication()

TYPO3\CMS\Extbase\Command\CoreCommand::setApplication ( Application  $application = null)

Sets the application instance for this command. This is done in setApplication() because configure() is called too early to do it in that place. The method 'setApplication()' is done right afterwards but has the application object to call. Then registers additional commands that act as wrappers to the actual Extbase commands.

Parameters
Application$application‪An Application instance

Definition at line 54 of file CoreCommand.php.

Member Data Documentation

◆ $extbaseBootstrap

Bootstrap TYPO3\CMS\Extbase\Command\CoreCommand::$extbaseBootstrap
protected

Definition at line 36 of file CoreCommand.php.