[TASK] Move arguments to initializeArguments() in TranslateVH in ext:fluid 04/49004/4
authorRoberto Torresani <erreti@gmail.com>
Sat, 16 Jul 2016 19:45:19 +0000 (21:45 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Tue, 19 Jul 2016 07:47:19 +0000 (09:47 +0200)
commita6c07b4dc770b91269f299625963448bdcafdcfd
tree0ffb60e78ef0e76edaa90d20556f6f2a838b89ef
parent4412a26f38f6b2fcf540f30c4e4847054b4c6c58
[TASK] Move arguments to initializeArguments() in TranslateVH in ext:fluid

Move the argument registrations away from the render() method
to initializeArguments(), to prevent any errors with PHP7 and
subclassed ViewHelpers if/when render() method signatures change.
Change the UnitTest TranslateViewHelperTest with setArguments()

Resolves: #77127
Releases: master
Change-Id: I8621e5410c60873d1295da0ca009c0599434114c
Reviewed-on: https://review.typo3.org/49004
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/TranslateViewHelperTest.php