Review main Merged

69733[TASK] Avoid access of global request in view helpers

Oli Bartsch CR +2 V +2 Normal +59 −72 updated 07/09/21, 07:56

Commit message

Since #92826, our own RenderingContext implementation,
available in our view helpers, contains the getRequest()
method, which was introduced to reduce the usages of
ControllerContext. In this patch, the majority of the view
helpers was changed to now access the request from
RenderingContext. Unfortunately, by this time, the extbase
Request was still not PSR-7 compatible. Therefore, some
view helpers still had to access $GLOBALS[TYPO3_REQUEST].

Since #94428, the extbase Request finally implements
the PSR-7 ServerRequestInterface, which now allows us
to replace the global access in the remaining view helpers.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 15