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

Public Member Functions

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

Protected Member Functions

 defineLegacyConstants ()
 
 checkEnvironmentOrDie ()
 
 initializeCgiCompatibilityLayerOrDie ()
 

Protected Attributes

 $bootstrap
 
 $entryPointLevel = 1
 
 $availableRequestHandlers
 

Detailed Description

Entry point for the TYPO3 Command Line for Backend calls

Definition at line 22 of file backend/Classes/Console/Application.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 48 of file backend/Classes/Console/Application.php.

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

Member Function Documentation

checkEnvironmentOrDie ( )
protected

Check the script is called from a cli environment.

Returns
void

Definition at line 96 of file backend/Classes/Console/Application.php.

References Application\initializeCgiCompatibilityLayerOrDie().

Referenced by Application\__construct().

defineLegacyConstants ( )
protected

Define constants and variables

Definition at line 86 of file backend/Classes/Console/Application.php.

Referenced by Application\__construct().

initializeCgiCompatibilityLayerOrDie ( )
protected

Set up cgi sapi as de facto cli, but check no HTTP environment variables are set.

Returns
void

Definition at line 111 of file backend/Classes/Console/Application.php.

Referenced by Application\checkEnvironmentOrDie().

run ( callable  $execute = null)

Set up the application and shut it down afterwards

Parameters
callable$execute
Returns
void

Implements ApplicationInterface.

Definition at line 72 of file backend/Classes/Console/Application.php.

Member Data Documentation

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

Definition at line 39 of file backend/Classes/Console/Application.php.

$bootstrap
protected

Definition at line 27 of file backend/Classes/Console/Application.php.

$entryPointLevel = 1
protected

Definition at line 33 of file backend/Classes/Console/Application.php.