‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Console\CommandApplication Class Reference
Inheritance diagram for TYPO3\CMS\Core\Console\CommandApplication:
TYPO3\CMS\Core\Core\ApplicationInterface

Public Member Functions

 __construct (Context $context, CommandRegistry $commandRegistry, EventDispatcherInterface $eventDispatcher, ConfigurationManager $configurationMananger, BootService $bootService, LanguageServiceFactory $languageServiceFactory)
 
 run ()
 

Protected Member Functions

 wantsFullBoot (string $commandName)
 
 getCommandName (ArgvInput $input)
 
 checkEnvironmentOrDie ()
 
 initializeContext ()
 

Protected Attributes

Context $context
 
CommandRegistry $commandRegistry
 
ConfigurationManager $configurationManager
 
BootService $bootService
 
LanguageServiceFactory $languageServiceFactory
 
SymfonyConsoleApplication $application
 

Private Member Functions

 resolveShortcut (string $commandName, CommandRegistry $commandRegistry)
 

Detailed Description

Entry point for the TYPO3 Command Line for Commands In addition to a simple Symfony Command, this also sets up a CLI user

Definition at line 41 of file CommandApplication.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Console\CommandApplication::__construct ( Context  $context,
CommandRegistry  $commandRegistry,
EventDispatcherInterface  $eventDispatcher,
ConfigurationManager  $configurationMananger,
BootService  $bootService,
LanguageServiceFactory  $languageServiceFactory 
)

Member Function Documentation

◆ checkEnvironmentOrDie()

TYPO3\CMS\Core\Console\CommandApplication::checkEnvironmentOrDie ( )
protected

Check the script is called from a cli environment.

Definition at line 164 of file CommandApplication.php.

Referenced by TYPO3\CMS\Core\Console\CommandApplication\__construct().

◆ getCommandName()

TYPO3\CMS\Core\Console\CommandApplication::getCommandName ( ArgvInput  $input)
protected

◆ initializeContext()

TYPO3\CMS\Core\Console\CommandApplication::initializeContext ( )
protected

Initializes the Context used for accessing data and finding out the current state of the application

Definition at line 174 of file CommandApplication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Console\CommandApplication\run().

◆ resolveShortcut()

TYPO3\CMS\Core\Console\CommandApplication::resolveShortcut ( string  $commandName,
CommandRegistry  $commandRegistry 
)
private

◆ run()

◆ wantsFullBoot()

TYPO3\CMS\Core\Console\CommandApplication::wantsFullBoot ( string  $commandName)
protected

Member Data Documentation

◆ $application

SymfonyConsoleApplication TYPO3\CMS\Core\Console\CommandApplication::$application
protected

Definition at line 53 of file CommandApplication.php.

◆ $bootService

BootService TYPO3\CMS\Core\Console\CommandApplication::$bootService
protected

◆ $commandRegistry

◆ $configurationManager

ConfigurationManager TYPO3\CMS\Core\Console\CommandApplication::$configurationManager
protected

Definition at line 47 of file CommandApplication.php.

◆ $context

Context TYPO3\CMS\Core\Console\CommandApplication::$context
protected

◆ $languageServiceFactory

LanguageServiceFactory TYPO3\CMS\Core\Console\CommandApplication::$languageServiceFactory
protected