| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __invoke(string $schemaId): JsonResponse |
||
| 22 | { |
||
| 23 | if ('urn:ietf:params:scim:schemas:core:2.0:User' !== $schemaId) { |
||
| 24 | throw new ScimException($this->translator->trans('Schema not supported')); |
||
| 25 | } |
||
| 26 | |||
| 27 | $userSchema = $this->getUserCoreSchema(); |
||
| 28 | |||
| 29 | return new JsonResponse( |
||
| 30 | $userSchema, |
||
| 31 | Response::HTTP_OK, |
||
| 32 | ['Content-Type' => self::SCIM_CONTENT_TYPE] |
||
| 33 | ); |
||
| 36 |