TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CommandApplication Class Reference
Inheritance diagram for CommandApplication:
ApplicationInterface

Public Member Functions

 __construct ($classLoader)
 
 run (callable $execute=null)
 

Protected Member Functions

 defineLegacyConstants ()
 
 checkEnvironmentOrDie ()
 

Protected Attributes

 $bootstrap
 
 $entryPointLevel = 4
 
 $availableRequestHandlers
 

Detailed Description

Entry point for the TYPO3 Command Line for Commands Does not run the RequestHandler as this already runs an Application inside an Application which is just way too much logic around simple CLI calls

Definition at line 25 of file CommandApplication.php.

Constructor & Destructor Documentation

__construct (   $classLoader)

Constructor setting up legacy constants and register available Request Handlers

Parameters
\Composer\Autoload\ClassLoader$classLoaderan instance of the class loader

Definition at line 52 of file CommandApplication.php.

References CommandApplication\checkEnvironmentOrDie(), CommandApplication\defineLegacyConstants(), and Bootstrap\getInstance().

Member Function Documentation

checkEnvironmentOrDie ( )
protected

Check the script is called from a cli environment.

Returns
void

Definition at line 98 of file CommandApplication.php.

Referenced by CommandApplication\__construct().

defineLegacyConstants ( )
protected

Define constants and variables

Definition at line 88 of file CommandApplication.php.

Referenced by CommandApplication\__construct().

run ( callable  $execute = null)

Run the Symfony Console application in this TYPO3 application

Parameters
callable$execute
Returns
void

Implements ApplicationInterface.

Definition at line 74 of file CommandApplication.php.

Member Data Documentation

$availableRequestHandlers
protected
Initial value:
= [
\TYPO3\CMS\Core\Console\CommandRequestHandler::class,
\TYPO3\CMS\Backend\Console\CliRequestHandler::class
]

Definition at line 42 of file CommandApplication.php.

$bootstrap
protected

Definition at line 30 of file CommandApplication.php.

$entryPointLevel = 4
protected

Definition at line 36 of file CommandApplication.php.