‪TYPO3CMS  11.5
TestController.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 use Psr\Http\Message\ResponseInterface;
26 
31 {
32  public function ‪getArguments(): ‪Arguments
33  {
34  return ‪$this->arguments;
35  }
36 
37  public function ‪initializeFooAction(): void
38  {
39  $propertyMappingConfiguration = $this->arguments['fooParam']->getPropertyMappingConfiguration();
40  $propertyMappingConfiguration->allowAllProperties();
41  $propertyMappingConfiguration->setTypeConverterOption(
42  PersistentObjectConverter::class,
44  true
45  );
46  }
47 
51  public function ‪fooAction(‪Model $fooParam): ResponseInterface
52  {
53  return $this->‪htmlResponse('');
54  }
55 
60  public function ‪barAction(string $barParam): ResponseInterface
61  {
62  return $this->‪htmlResponse('');
63  }
64 
69  public function ‪bazAction(array $bazParam): ResponseInterface
70  {
71  return $this->‪htmlResponse('');
72  }
73 
74  public function ‪quxAction(): ResponseInterface
75  {
76  return $this->‪htmlResponse('');
77  }
78 }
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\quxAction
‪quxAction()
Definition: TestController.php:74
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\fooAction
‪fooAction(Model $fooParam)
Definition: TestController.php:51
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController\$arguments
‪TYPO3 CMS Extbase Mvc Controller Arguments $arguments
Definition: ActionController.php:159
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse
‪ResponseInterface htmlResponse(string $html=null)
Definition: ActionController.php:1067
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\getArguments
‪getArguments()
Definition: TestController.php:32
‪TYPO3\CMS\Extbase\Mvc\Controller\Arguments
Definition: Arguments.php:27
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter\CONFIGURATION_CREATION_ALLOWED
‪const CONFIGURATION_CREATION_ALLOWED
Definition: PersistentObjectConverter.php:52
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\initializeFooAction
‪initializeFooAction()
Definition: TestController.php:37
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter
Definition: PersistentObjectConverter.php:43
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\bazAction
‪bazAction(array $bazParam)
Definition: TestController.php:69
‪ExtbaseTeam\ActionControllerTest\Controller\TestController\barAction
‪barAction(string $barParam)
Definition: TestController.php:60
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:65
‪ExtbaseTeam\ActionControllerTest\Domain\Model\Model
Definition: Model.php:26
‪ExtbaseTeam\ActionControllerTest\Controller
Definition: TestController.php:18
‪ExtbaseTeam\ActionControllerTest\Controller\TestController
Definition: TestController.php:31