/** * @EXT\Route( * "/request/pending/remove/{friend}", * name="oauth_pending_friend_remove", * options = {"expose"=true} * ) * @SEC\PreAuthorize("canOpenAdminTool('platform_parameters')") * * @return Response */ public function removePendingFriend(PendingFriend $friend) { $oldid = $friend->getId(); $this->oauthManager->removePendingFriend($friend); return new JsonResponse(array('id' => $oldid)); }