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 | * @param string $username |
||
17 | * @param UserRepository $repository |
||
18 | * @return JsonResponse |
||
19 | */ |
||
20 | 2 | public function isUserExistsByUsername(string $username, UserRepository $repository) |
|
32 | |||
33 | /** |
||
34 | * Check is user exists by email |
||
35 | * |
||
36 | * @Route("/api/users/email/{email}", methods={"GET"}) |
||
37 | * @param string $email |
||
38 | * @param UserRepository $repository |
||
39 | * @return JsonResponse |
||
40 | */ |
||
41 | 2 | public function isUserExistsByEmail(string $email, UserRepository $repository) |
|
53 | } |