‪TYPO3CMS  ‪main
TYPO3Tests\ActionControllerTest\Controller\TestController Class Reference
Inheritance diagram for TYPO3Tests\ActionControllerTest\Controller\TestController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 getArguments ()
 
 renderAssetsForRequest ($request)
 
 initializeActionMethodArguments ()
 
 setViewConfiguration (ViewInterface $view)
 
 getFlashMessageQueue (string $identifier=null)
 
 initializeFooAction ()
 
 fooAction (Model $fooParam)
 
 barAction (string $barParam)
 
 bazAction (array $bazParam)
 
 quxAction ()
 
 initializeActionMethodArgumentsTestActionOne (string $stringArgument, int $integerArgument, \stdClass $objectArgument)
 
 initializeActionMethodArgumentsTestActionTwo (string $arg1, array $arg2=[21], string $arg3='foo')
 
 initializeActionMethodArgumentsTestActionThree ($arg1)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
 processRequest (RequestInterface $request)
 
 addFlashMessage (string $messageBody, string $messageTitle='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::OK, bool $storeInSession=true)
 
 throwStatus (int $statusCode, string $statusMessage='', ?string $content=null)
 

Public Attributes

 $view
 
Arguments $arguments
 
string $actionMethodName
 
RequestInterface $request
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeAction ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest (RequestInterface $request)
 
 resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
 resolveView ()
 
 errorAction ()
 
 addErrorFlashMessage ()
 
 getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
 redirect (?string $actionName, ?string $controllerName=null, ?string $extensionName=null, ?array $arguments=null, ?int $pageUid=null, $_=null, int $statusCode=303)
 
 redirectToUri (string|UriInterface $uri, $_=null, int $statusCode=303)
 
 addBaseUriIfNecessary (string $uri)
 
 mapRequestArgumentsToControllerArguments ()
 
 htmlResponse (string $html=null)
 
 jsonResponse (string $json=null)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
HashService $hashService
 
ReflectionService $reflectionService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
RequestInterface $request
 
UriBuilder $uriBuilder
 
array $settings
 
ValidatorResolver $validatorResolver
 
Arguments $arguments
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

Fixture controller with some test actions and making some abstract controller things public.

Definition at line 33 of file TestController.php.

Member Function Documentation

◆ barAction()

TYPO3Tests\ActionControllerTest\Controller\TestController::barAction ( string  $barParam)

@Extbase\Validate("TYPO3.CMS.Extbase.Tests.Functional.Mvc.Controller.Fixture:CustomValidator", param="barParam")

Definition at line 84 of file TestController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse().

◆ bazAction()

TYPO3Tests\ActionControllerTest\Controller\TestController::bazAction ( array  $bazParam)

@Extbase\Validate("NotEmpty", param="bazParam")

Definition at line 92 of file TestController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse().

◆ fooAction()

TYPO3Tests\ActionControllerTest\Controller\TestController::fooAction ( Model  $fooParam)

◆ getArguments()

TYPO3Tests\ActionControllerTest\Controller\TestController::getArguments ( )

◆ getFlashMessageQueue()

TYPO3Tests\ActionControllerTest\Controller\TestController::getFlashMessageQueue ( string  $identifier = null)

todo: As soon as the incoming request contains the compiled plugin namespace, extbase will offer a trait to create a flash message identifier from the current request. Users then should inject the flash message service themselves if needed.

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 60 of file TestController.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ initializeActionMethodArguments()

TYPO3Tests\ActionControllerTest\Controller\TestController::initializeActionMethodArguments ( )

Implementation of the arguments initialization in the action controller: Automatically registers arguments of the current action

Don't override this method - use initializeAction() instead.

Exceptions
InvalidArgumentTypeException
See also
‪initializeArguments()

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 50 of file TestController.php.

◆ initializeActionMethodArgumentsTestActionOne()

TYPO3Tests\ActionControllerTest\Controller\TestController::initializeActionMethodArgumentsTestActionOne ( string  $stringArgument,
int  $integerArgument,
\stdClass  $objectArgument 
)

◆ initializeActionMethodArgumentsTestActionThree()

TYPO3Tests\ActionControllerTest\Controller\TestController::initializeActionMethodArgumentsTestActionThree (   $arg1)

◆ initializeActionMethodArgumentsTestActionTwo()

TYPO3Tests\ActionControllerTest\Controller\TestController::initializeActionMethodArgumentsTestActionTwo ( string  $arg1,
array  $arg2 = [21],
string  $arg3 = 'foo' 
)

◆ initializeFooAction()

TYPO3Tests\ActionControllerTest\Controller\TestController::initializeFooAction ( )

◆ quxAction()

TYPO3Tests\ActionControllerTest\Controller\TestController::quxAction ( )

◆ renderAssetsForRequest()

TYPO3Tests\ActionControllerTest\Controller\TestController::renderAssetsForRequest (   $request)

◆ setViewConfiguration()

TYPO3Tests\ActionControllerTest\Controller\TestController::setViewConfiguration ( ViewInterface  $view)

Member Data Documentation

◆ $actionMethodName

string TYPO3Tests\ActionControllerTest\Controller\TestController::$actionMethodName

Definition at line 37 of file TestController.php.

◆ $arguments

Arguments TYPO3Tests\ActionControllerTest\Controller\TestController::$arguments

◆ $request

RequestInterface TYPO3Tests\ActionControllerTest\Controller\TestController::$request

◆ $view

TYPO3Tests\ActionControllerTest\Controller\TestController::$view