On this page
ServerParams
class ServerParams
Methods
__construct(RequestStack $requestStack = null) | ||
bool | hasPostMaxSizeBeenExceeded() Returns true if the POST max size has been exceeded in the request. |
|
int|null | getPostMaxSize() Returns maximum post size in bytes. |
|
string | getNormalizedIniPostMaxSize() Returns the normalized "post_max_size" ini setting. |
|
mixed | getContentLength() Returns the content length of the request. |
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 |
int|null getPostMaxSize()
Returns maximum post size in bytes.
Return Value
int|null | The maximum post size in bytes |
string getNormalizedIniPostMaxSize()
Returns the normalized "post_max_size" 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.
https://api.symfony.com/4.1/Symfony/Component/Form/Util/ServerParams.html