It is applicable only to either POST or PATCH methods.
It should be used on GET methods.
public validateObject ( object $object, string $method = null ) | ||
$object | object | An object provided with the request |
$method | string | optional HTTP METHOD |