| 1 | <?php |
||
| 10 | class UserCheckController extends BaseController |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Check is user exists by username. |
||
| 14 | * |
||
| 15 | * @Route("/api/users/username/{username}", methods={"GET"}) |
||
| 16 | * |
||
| 17 | * @param string $username |
||
| 18 | * @param UserRepository $repository |
||
| 19 | * |
||
| 20 | * @return JsonResponse |
||
| 21 | */ |
||
| 22 | 2 | public function isUserExistsByUsername(string $username, UserRepository $repository) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Check is user exists by email. |
||
| 37 | * |
||
| 38 | * @Route("/api/users/email/{email}", methods={"GET"}) |
||
| 39 | * |
||
| 40 | * @param string $email |
||
| 41 | * @param UserRepository $repository |
||
| 42 | * |
||
| 43 | * @return JsonResponse |
||
| 44 | */ |
||
| 45 | 2 | public function isUserExistsByEmail(string $email, UserRepository $repository) |
|
| 57 | } |
||
| 58 |