Symfony\Component\HttpFoundation\ServerBag
ServerBag is a container for HTTP headers from the $_SERVER variable.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ServerBag
extends ParameterBag
{
- // Inherited members from ParameterBag
- protected array $parameters;
- // methods
- public array getHeaders()
- // Inherited methods from ParameterBag
- public void __construct()
- public array all()
- public array keys()
- public void replace()
- public void add()
- public mixed get()
- public void set()
- public Boolean has()
- public void remove()
- public string getAlpha()
- public string getAlnum()
- public string getDigits()
- public integer getInt()
- public mixed filter()
- public ArrayIterator getIterator()
- public int count()
Hierarchy
Members
protected
- $parameters
—
array
Parameter storage.
Methods
public
- getHeaders() — Gets the HTTP headers.
Inherited from Symfony\Component\HttpFoundation\ParameterBag
public
- add() — Adds parameters.
- all() — Returns the parameters.
- count() — Returns the number of parameters.
- filter() — Filter key.
- get() — Returns a parameter by name.
- getAlnum() — Returns the alphabetic characters and digits of the parameter value.
- getAlpha() — Returns the alphabetic characters of the parameter value.
- getDigits() — Returns the digits of the parameter value.
- getInt() — Returns the parameter value converted to integer.
- getIterator() — Returns an iterator for parameters.
- has() — Returns true if the parameter is defined.
- keys() — Returns the parameter keys.
- remove() — Removes a parameter.
- replace() — Replaces the current parameters by a new set.
- set() — Sets a parameter by name.