headers->get('x-auth-token'); $security->isGranted('MAESTRO_PROJECT_PROJECTS_DELETE', $token); $view = new CommonIdView( $id ); $deleted = $deleteQuery->deleteProjectDocument($view); if ($deleted) { //DELETE THE CACHE IF WE HAVE, BECAUSE THE VALUE WAS CHANGED $cache = new FilesystemAdapter(); $cache->clear(); //END DELETING CACHE } $body = new CommonResponseView($deleted, "delete", "projectDocument", "success"); return $respond->statusCreated()->createBodyObject($body)->respond(); } }