|
@@ 401-409 (lines=9) @@
|
| 398 |
|
* |
| 399 |
|
* @return JsonApiValidatorInterface |
| 400 |
|
*/ |
| 401 |
|
protected static function createOnCreateValidator(ContainerInterface $container): JsonApiValidatorInterface |
| 402 |
|
{ |
| 403 |
|
assert( |
| 404 |
|
empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false, |
| 405 |
|
'Validation rules set should be defined for class ' . static::class . '.' |
| 406 |
|
); |
| 407 |
|
|
| 408 |
|
return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS); |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
/** |
| 412 |
|
* @param ContainerInterface $container |
|
@@ 416-424 (lines=9) @@
|
| 413 |
|
* |
| 414 |
|
* @return JsonApiValidatorInterface |
| 415 |
|
*/ |
| 416 |
|
protected static function createOnUpdateValidator(ContainerInterface $container): JsonApiValidatorInterface |
| 417 |
|
{ |
| 418 |
|
assert( |
| 419 |
|
empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false, |
| 420 |
|
'Validation rules set should be defined for class ' . static::class . '.' |
| 421 |
|
); |
| 422 |
|
|
| 423 |
|
return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS); |
| 424 |
|
} |
| 425 |
|
|
| 426 |
|
/** |
| 427 |
|
* @param ContainerInterface $container |