Ojs\ApiBundle\Controller\Journal\JournalIssueFileRestController::deleteFileAction PHP 메소드

deleteFileAction() 공개 메소드

public deleteFileAction ( $id ) : Response
$id
리턴 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, []);
    }