TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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
 
 $entryPointPath = 'typo3/'
 
 $availableRequestHandlers
 

Detailed Description

Entry point for the TYPO3 Command Line for Backend calls

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

References elseif, and Application\initializeCgiCompatibilityLayerOrDie().

Referenced by Application\__construct().

defineLegacyConstants ( )
protected

Define constants and variables

Definition at line 85 of file typo3/sysext/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 typo3/sysext/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 71 of file typo3/sysext/backend/Classes/Console/Application.php.

Member Data Documentation

$availableRequestHandlers
protected
Initial value:
= array(
\TYPO3\CMS\Backend\Console\CliRequestHandler::class
)

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

$bootstrap
protected
$entryPointPath = 'typo3/'
protected