[TASK] Migrate Extbase Typo3DbBackend to Context API 01/57401/5
authorBenni Mack <benni@typo3.org>
Thu, 28 Jun 2018 05:27:39 +0000 (07:27 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 2 Jul 2018 06:36:13 +0000 (08:36 +0200)
commit3e83a6b14691737118cf0fb7aa50d3ab7f80ac8a
treedcf5c869dc5b0b5f412c2d2ebf6f9110991f058a
parented0e14b28e2c4ef98b5e00e3485a241b607f8d91
[TASK] Migrate Extbase Typo3DbBackend to Context API

Due to the introduction of Contexts, it is now possible
for Extbase to use the global context and to modify
it to set up a new instance of "PageRepository"
with just a context initialized. This way,
dependencies to $BE_USER and $TSFE->sys_page
are removed.

In further steps, the method should actually just work
with the context object which should be handed in,
however, some more work regarding language handling
has to be implemented first.

Resolves: #85413
Releases: master
Change-Id: If657d25943d92a69a754a29c22461d43b97c4095
Reviewed-on: https://review.typo3.org/57401
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php