Breaking: #93041 - Remove TypoScript option addQueryString.method
See forge#93041
Description
The TypoScript option add
has been removed.
If omitted, this added all parameters from the PHP $_
value, which was used heavily in PHP 3 / PHP 4 times, instead of the more
"modern" $_
parameters, which was set via add
.
However, the latter solution was / is the default for working in PSR-7
requests, and with routing. The option itself is removed, in order to
have TYPO3 use the same values throughout TYPO3 Core, making method = GET
the default and thus, the only option.
To further streamline TYPO3s source code, the underlying PHP method
Content
now only accepts exactly
one argument.
All Fluid arguments related to that setting, or Extbase UriBuilder methods do not change any behavior anymore related to building an Uri.
Impact
Calling Uri
will trigger a PHP E_
error.
Calling Content
with more
than one argument will have no effect anymore.
Setting the TypoScript option add
will
have no effect anymore.
Using the add
argument in the following
ViewHelpers will trigger a deprecation notice:
<f:
form> <f:
link. action> <f:
link. page> <f:
link. typolink> <f:
uri. action> <f:
uri. page> <f:
uri. typolink>
Affected Installations
Any TYPO3 installation
- with extensions calling Extbase's
Uri
methodBuilder->set Add Query String Method () - with extensions calling
Content
with more then one argumentObject Renderer->get Query Arguments () - with custom templates setting the
add
argument in Fluid using one of the mentioned ViewHelper.Query String Method
Migration
Remove any usages within the Fluid templates or Extension code.