security = $security; } /** * @Route("/api/1.0/doc-store/stored-object/{uuid}/is-ready") */ public function isDocumentReady(StoredObject $storedObject): Response { if (!$this->security->isGranted('ROLE_USER')) { throw new AccessDeniedHttpException(); } return new JsonResponse( [ 'id' => $storedObject->getId(), 'filename' => $storedObject->getFilename(), 'status' => $storedObject->getStatus(), 'type' => $storedObject->getType(), ] ); } }