Issue #3276939 by daffie, aziza_a, larowlan: The Symfony method Request::setTrustedHosts() is a static method, we use it as non-static
parent
f47b62e0dd
commit
e8cdbb6923
|
@ -1561,7 +1561,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
|
|||
* @see \Drupal\Core\Http\TrustedHostsRequestFactory
|
||||
*/
|
||||
protected static function setupTrustedHosts(Request $request, $host_patterns) {
|
||||
$request->setTrustedHosts($host_patterns);
|
||||
Request::setTrustedHosts($host_patterns);
|
||||
|
||||
// Get the host, which will validate the current request.
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue