CommandApplication implements ApplicationInterface
Entry point for the TYPO3 Command Line for Commands In addition to a simple Symfony Command, this also sets up a CLI user
Table of Contents
Interfaces
- ApplicationInterface
- The base ApplicationInterface which is used for all Entry Points for TYPO3, may it be Frontend, Backend, Install Tool or Command Line.
Properties
- $application : Application
- $bootService : BootService
- $commandRegistry : CommandRegistry
- $configurationManager : ConfigurationManager
- $context : Context
- $languageServiceFactory : LanguageServiceFactory
Methods
- __construct() : mixed
- run() : mixed
- Run the Symfony Console application in this TYPO3 application
- checkEnvironmentOrDie() : void
- Check the script is called from a cli environment.
- getCommandName() : string
- initializeContext() : void
- Initializes the Context used for accessing data and finding out the current state of the application
- wantsFullBoot() : bool
Properties
$application
protected
Application
$application
$bootService
protected
BootService
$bootService
$commandRegistry
protected
CommandRegistry
$commandRegistry
$configurationManager
protected
ConfigurationManager
$configurationManager
$context
protected
Context
$context
$languageServiceFactory
protected
LanguageServiceFactory
$languageServiceFactory
Methods
__construct()
public
__construct(Context $context, CommandRegistry $commandRegistry, EventDispatcherInterface $eventDispatcher, ConfigurationManager $configurationMananger, BootService $bootService, LanguageServiceFactory $languageServiceFactory) : mixed
Parameters
- $context : Context
- $commandRegistry : CommandRegistry
- $eventDispatcher : EventDispatcherInterface
- $configurationMananger : ConfigurationManager
- $bootService : BootService
- $languageServiceFactory : LanguageServiceFactory
run()
Run the Symfony Console application in this TYPO3 application
public
run([callable $execute = null ]) : mixed
Parameters
- $execute : callable = null
-
Deprecated, will be removed in TYPO3 v12.0
checkEnvironmentOrDie()
Check the script is called from a cli environment.
protected
checkEnvironmentOrDie() : void
getCommandName()
protected
getCommandName(ArgvInput $input) : string
Parameters
- $input : ArgvInput
Return values
stringinitializeContext()
Initializes the Context used for accessing data and finding out the current state of the application
protected
initializeContext() : void
wantsFullBoot()
protected
wantsFullBoot(string $commandName) : bool
Parameters
- $commandName : string