Issue #3276939 by daffie, aziza_a, larowlan: The Symfony method Request::setTrustedHosts() is a static method, we use it as non-static
(cherry picked from commit e8cdbb6923
)
merge-requests/3575/head
parent
9f7a8d2e2c
commit
dce8ca6584
|
@ -1557,7 +1557,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