[BUGFIX] Fix regressions and leftovers in Context API 96/57396/12
authorBenni Mack <benni@typo3.org>
Wed, 27 Jun 2018 13:31:53 +0000 (15:31 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 1 Jul 2018 15:47:32 +0000 (17:47 +0200)
commited0e14b28e2c4ef98b5e00e3485a241b607f8d91
tree4811fa8a46ba9cc50e2585ff329d5e82513aea68
parentdda2f6c96ad0f1046723e9ba91cb4e21a33cea7c
[BUGFIX] Fix regressions and leftovers in Context API

Some usages where now-deprecated properties are used,
have been adjusted.

The RST file has been enhanced to clarify when to clone
the context, and when to override an aspect.

Additionally, the usage within TemplateService has been
optimized to also receive an optional context object,
similar to the initial patch's PageRepository approach.

Resolves: #85408
Related: #85389
Releases: master
Change-Id: I178ff07cbfe999a90bf7d5dd4f20a6170876d003
Reviewed-on: https://review.typo3.org/57396
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
21 files changed:
typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php
typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php
typo3/sysext/core/Classes/Context/Context.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-85408-TemplateServiceInitDeprecated.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-85389-ContextAPIForConsistentDataHandling.rst
typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php
typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php
typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php
typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/t3editor/Classes/Controller/CodeCompletionController.php
typo3/sysext/tstemplate/Classes/Controller/TemplateAnalyzerModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php