‪TYPO3CMS  10.4
Response.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 
20 
26 {
28 
33  'environmentService' => 'Property \TYPO3\CMS\Extbase\Mvc\Web\Response::$environmentService is deprecated since TYPO3 10.2 and will be removed in TYPO3 11.0'
34  ];
35 
40  private ‪$environmentService;
41 
48  {
49  $this->environmentService = ‪$environmentService;
50  }
51 
58  public function ‪shutdown()
59  {
60  if (!empty($this->‪getAdditionalHeaderData())) {
61  $this->‪getTypoScriptFrontendController()->additionalHeaderData[] = implode(LF, $this->‪getAdditionalHeaderData());
62  }
63  $this->‪sendHeaders();
64  return parent::shutdown();
65  }
66 }
‪TYPO3\CMS\Extbase\Mvc\Response\getTypoScriptFrontendController
‪TypoScriptFrontendController getTypoScriptFrontendController()
Definition: Response.php:360
‪TYPO3\CMS\Extbase\Mvc\Web\Response\shutdown
‪string null shutdown()
Definition: Response.php:55
‪TYPO3\CMS\Extbase\Mvc\Web\Response\$deprecatedPublicProperties
‪array $deprecatedPublicProperties
Definition: Response.php:30
‪TYPO3\CMS\Extbase\Mvc\Web\Response\injectEnvironmentService
‪injectEnvironmentService(EnvironmentService $environmentService)
Definition: Response.php:44
‪TYPO3\CMS\Extbase\Mvc\Response
Definition: Response.php:26
‪TYPO3\CMS\Extbase\Mvc\Web\Response
Definition: Response.php:26
‪TYPO3\CMS\Extbase\Mvc\Response\sendHeaders
‪sendHeaders()
Definition: Response.php:285
‪TYPO3\CMS\Extbase\Service\EnvironmentService
Definition: EnvironmentService.php:27
‪TYPO3\CMS\Extbase\Mvc\Web
Definition: AbstractRequestHandler.php:16
‪TYPO3\CMS\Extbase\Mvc\Web\Response\$environmentService
‪TYPO3 CMS Extbase Service EnvironmentService $environmentService
Definition: Response.php:37
‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
Definition: PublicPropertyDeprecationTrait.php:68
‪TYPO3\CMS\Extbase\Mvc\Response\getAdditionalHeaderData
‪array getAdditionalHeaderData()
Definition: Response.php:334