| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class PhotoController extends AbstractPhotoController implements AjaxController |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @Route("/user/photo/{id<\d+>}/upload", name="user_photo_upload", methods={"POST"}) |
||
| 20 | * @IsGranted("PROPERTY_EDIT", subject="property", message="You cannot change this property.") |
||
| 21 | */ |
||
| 22 | public function upload(Property $property, Request $request, FileUploader $fileUploader): JsonResponse |
||
| 23 | { |
||
| 24 | return $this->uploadPhoto($property, $request, $fileUploader); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Sort photos. |
||
| 29 | * |
||
| 30 | * @Route("/user/photo/{id<\d+>}/sort",methods={"POST"}, name="user_photo_sort") |
||
| 31 | * @IsGranted("PROPERTY_EDIT", subject="property", message="You cannot change this property.") |
||
| 32 | */ |
||
| 33 | public function sort(Request $request, Property $property): JsonResponse |
||
| 36 | } |
||
| 37 | } |
||
| 38 |