/** * Sets a list of trusted host patterns. * * You should only list the hosts you manage using regexs. * * @param array $hostPatterns A list of trusted host patterns */ public static function setTrustedHosts(array $hostPatterns) { return Symfony\Component\HttpFoundation\Request::setTrustedHosts($hostPatterns); }