‪TYPO3CMS  11.5
ReferringRequest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
26 {
27  public function ‪__construct(‪$request = null)
28  {
29  trigger_error(__CLASS__ . ' will be removed in TYPO3 v12, use ForwardResponse instead, see ActionController->forwardToReferringRequest().', E_USER_DEPRECATED);
30  parent::__construct(‪$request);
31  }
32 
39  public function ‪setArgument($argumentName, $value)
40  {
41  parent::setArgument($argumentName, $value);
42 
43  switch ($argumentName) {
44  case '@extension':
45  $this->‪getExtbaseAttribute()->setControllerExtensionName($value);
46  break;
47  case '@controller':
48  $this->‪getExtbaseAttribute()->setControllerName($value);
49  break;
50  case '@action':
51  $this->‪getExtbaseAttribute()->setControllerActionName($value);
52  break;
53  case '@format':
54  $this->‪getExtbaseAttribute()->setFormat($value);
55  break;
56  }
57  }
58 }
‪TYPO3\CMS\Extbase\Mvc\Request\getExtbaseAttribute
‪getExtbaseAttribute()
Definition: Request.php:81
‪TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest\__construct
‪__construct($request=null)
Definition: ReferringRequest.php:27
‪TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest\setArgument
‪setArgument($argumentName, $value)
Definition: ReferringRequest.php:39
‪TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest
Definition: ReferringRequest.php:26
‪TYPO3\CMS\Extbase\Mvc\Web
Definition: FrontendRequestHandler.php:16
‪TYPO3\CMS\Extbase\Mvc\Request\$request
‪ServerRequestInterface $request
Definition: Request.php:40
‪TYPO3\CMS\Extbase\Mvc\Request
Definition: Request.php:39