|
@@ 383-391 (lines=9) @@
|
| 380 |
|
* |
| 381 |
|
* @return JsonApiValidatorInterface |
| 382 |
|
*/ |
| 383 |
|
protected static function createOnCreateValidator(ContainerInterface $container): JsonApiValidatorInterface |
| 384 |
|
{ |
| 385 |
|
assert( |
| 386 |
|
empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false, |
| 387 |
|
'Validation rules set should be defined for class ' . static::class . '.' |
| 388 |
|
); |
| 389 |
|
|
| 390 |
|
return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS); |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
/** |
| 394 |
|
* @param ContainerInterface $container |
|
@@ 398-406 (lines=9) @@
|
| 395 |
|
* |
| 396 |
|
* @return JsonApiValidatorInterface |
| 397 |
|
*/ |
| 398 |
|
protected static function createOnUpdateValidator(ContainerInterface $container): JsonApiValidatorInterface |
| 399 |
|
{ |
| 400 |
|
assert( |
| 401 |
|
empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false, |
| 402 |
|
'Validation rules set should be defined for class ' . static::class . '.' |
| 403 |
|
); |
| 404 |
|
|
| 405 |
|
return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
/** |
| 409 |
|
* @param ContainerInterface $container |