/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Http/Exception
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Http/Exception/RedirectException.php (2643B)
$value) {
$this->setHeader($key, (array)$value);
}
}
/**
* Add headers to be included in the response generated from this exception
*
* @param array $headers An array of `header => value` to append to the exception.
* If a header already exists, the new values will be appended to the existing ones.
* @return $this
* @deprecated 4.2.0 Use `setHeaders()` instead.
*/
public function addHeaders(array $headers)
{
deprecationWarning('RedirectException::addHeaders() is deprecated, use setHeaders() instead.');
foreach ($headers as $key => $value) {
$this->headers[$key][] = $value;
}
return $this;
}
/**
* Remove a header from the exception.
*
* @param string $key The header to remove.
* @return $this
* @deprecated 4.2.0 Use `setHeaders()` instead.
*/
public function removeHeader(string $key)
{
deprecationWarning('RedirectException::removeHeader() is deprecated, use setHeaders() instead.');
unset($this->headers[$key]);
return $this;
}
}