‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Mvc\Cli\Response Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Cli\Response:
TYPO3\CMS\Extbase\Mvc\Response TYPO3\CMS\Extbase\Mvc\ResponseInterface

Public Member Functions

 setExitCode ($exitCode)
 
int getExitCode ()
 
 send ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Response
 setContent ($content)
 
 appendContent ($content)
 
string getContent ()
 
string shutdown ()
 
string __toString ()
 

Private Attributes

int $exitCode = 0
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Response
string $content
 

Detailed Description

A CLI specific response implementation

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0. Use symfony/console commands instead.

Definition at line 22 of file Response.php.

Member Function Documentation

◆ getExitCode()

int TYPO3\CMS\Extbase\Mvc\Cli\Response::getExitCode ( )

Rets the numerical exit code which should be returned when exiting this application.

Returns
‪int

Definition at line 47 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Response\$exitCode.

◆ send()

TYPO3\CMS\Extbase\Mvc\Cli\Response::send ( )

Renders and sends the whole web response

Definition at line 55 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\shutdown().

◆ setExitCode()

TYPO3\CMS\Extbase\Mvc\Cli\Response::setExitCode (   $exitCode)

Sets the numerical exit code which should be returned when exiting this application.

Parameters
int$exitCode
Exceptions

Definition at line 34 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Response\$exitCode.

Member Data Documentation

◆ $exitCode

int TYPO3\CMS\Extbase\Mvc\Cli\Response::$exitCode = 0
private