class ValidateFieldsSubscriber extends AbstractPrepareSubscriber

Validate field inputs based on annotations in the action class

Methods

static array
getSubscribedEvents()

No description

onApiPrepare(PrepareEvent $event)

No description

static bool
checkType($value, $types)

Validate variable type on input

Details

static array getSubscribedEvents()

Return Value

array

at line 41
onApiPrepare(PrepareEvent $event)

Parameters

PrepareEvent $event

Exceptions

Exception

at line 68
static bool checkType($value, $types)

Validate variable type on input

Parameters

$value
$types

Return Value

bool

Exceptions

API_Exception