‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\Core\Rendering\RenderingContext Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Rendering\RenderingContext:

Public Member Functions

 __construct (ViewHelperResolver $viewHelperResolver, FluidCacheInterface $cache, array $templateProcessors, array $expressionNodeTypes, TemplatePaths $templatePaths,)
 
 buildParserConfiguration ()
 
 setControllerAction ($action)
 
 setControllerName ($controllerName)
 
 getControllerName ()
 
 getControllerAction ()
 
 setRequest (?ServerRequestInterface $request)
 
 getRequest ()
 

Protected Attributes

ServerRequestInterface $request = null
 
string $controllerName = 'Default'
 
string $controllerAction = 'Default'
 

Detailed Description

Definition at line 34 of file RenderingContext.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::__construct ( ViewHelperResolver  $viewHelperResolver,
FluidCacheInterface  $cache,
array  $templateProcessors,
array  $expressionNodeTypes,
TemplatePaths  $templatePaths 
)

constructor, use RenderingContextFactory->create() instead

Definition at line 49 of file RenderingContext.php.

Member Function Documentation

◆ buildParserConfiguration()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::buildParserConfiguration ( )

Build parser configuration. Adds custom fluid interceptors from configuration.

Exceptions

Definition at line 74 of file RenderingContext.php.

References $GLOBALS.

◆ getControllerAction()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getControllerAction ( )

◆ getControllerName()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getControllerName ( )

◆ getRequest()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getRequest ( )

◆ setControllerAction()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setControllerAction (   $action)
Parameters
string$action

Definition at line 93 of file RenderingContext.php.

Referenced by TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setRequest().

◆ setControllerName()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setControllerName (   $controllerName)

◆ setRequest()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setRequest ( ?ServerRequestInterface  $request)

It is currently allowed to setRequest(null) to unset a request object created by factories. Some tests use this to make sure no extbase request is set. This may change.

Definition at line 135 of file RenderingContext.php.

References TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$request, TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setControllerAction(), and TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setControllerName().

Member Data Documentation

◆ $controllerAction

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$controllerAction = 'Default'
protected

◆ $controllerName

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$controllerName = 'Default'
protected

◆ $request

ServerRequestInterface TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$request = null
protected