src/Surfnet/StepupMiddlewareClientBundle/Identity/Service/IdentityService.php 1 location
|
@@ 114-123 (lines=10) @@
|
| 111 |
|
* @param object $value |
| 112 |
|
* @param null|string $message |
| 113 |
|
*/ |
| 114 |
|
private function assertIsValid($value, $message = null) |
| 115 |
|
{ |
| 116 |
|
$violations = $this->validator->validate($value); |
| 117 |
|
|
| 118 |
|
$message = $message ?: 'Invalid Response Received'; |
| 119 |
|
|
| 120 |
|
if (count($violations) > 0) { |
| 121 |
|
throw InvalidResponseException::withViolations($message, $violations); |
| 122 |
|
} |
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
|
src/Surfnet/StepupMiddlewareClientBundle/Identity/Service/RaListingService.php 1 location
|
@@ 100-109 (lines=10) @@
|
| 97 |
|
* @param object $value |
| 98 |
|
* @param null|string $message |
| 99 |
|
*/ |
| 100 |
|
private function assertIsValid($value, $message = null) |
| 101 |
|
{ |
| 102 |
|
$violations = $this->validator->validate($value); |
| 103 |
|
|
| 104 |
|
$message = $message ?: 'Invalid Response Received'; |
| 105 |
|
|
| 106 |
|
if (count($violations) > 0) { |
| 107 |
|
throw InvalidResponseException::withViolations($message, $violations); |
| 108 |
|
} |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
src/Surfnet/StepupMiddlewareClientBundle/Identity/Service/RaService.php 1 location
|
@@ 70-79 (lines=10) @@
|
| 67 |
|
* @param object $value |
| 68 |
|
* @param null|string $message |
| 69 |
|
*/ |
| 70 |
|
private function assertIsValid($value, $message = null) |
| 71 |
|
{ |
| 72 |
|
$violations = $this->validator->validate($value); |
| 73 |
|
|
| 74 |
|
$message = $message ?: 'Invalid Response Received'; |
| 75 |
|
|
| 76 |
|
if (count($violations) > 0) { |
| 77 |
|
throw InvalidResponseException::withViolations($message, $violations); |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
} |
| 81 |
|
|