Ojs\ApiBundle\Controller\Journal\JournalIssueFileRestController::deleteFileAction PHP Method

deleteFileAction() public method

public deleteFileAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response
    public function deleteFileAction($id)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('DELETE', $journal, 'issues')) {
            throw new AccessDeniedException();
        }
        $entity = $this->getOr404($id);
        $this->container->get('ojs_api.journal_issue_file.handler')->delete($entity);
        return $this->view(null, Codes::HTTP_NO_CONTENT, []);
    }