ServerParams

class ServerParams extends ServerParams

Methods

__construct(RequestStack $requestStack = null) from ServerParams
bool hasPostMaxSizeBeenExceeded()

Returns true if the POST max size has been exceeded in the request.

from ServerParams
null|int getPostMaxSize()

Returns maximum post size in bytes.

from ServerParams
string getNormalizedIniPostMaxSize()

Returns the normalized "postmaxsize" ini setting.

from ServerParams
mixed getContentLength()

Returns the content length of the request.

from ServerParams

Details

__construct(RequestStack $requestStack = null)

Parameters

RequestStack $requestStack

bool hasPostMaxSizeBeenExceeded()

Returns true if the POST max size has been exceeded in the request.

Return Value

bool

null|int getPostMaxSize()

Returns maximum post size in bytes.

Return Value

null|int The maximum post size in bytes

string getNormalizedIniPostMaxSize()

Returns the normalized "postmaxsize" ini setting.

Return Value

string

mixed getContentLength()

Returns the content length of the request.

Return Value

mixed The request content length

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Form/Extension/Validator/Util/ServerParams.html