src/Controller/Api/GalleryController.php
public function deleteGalleryAction($id)
    {
        $gallery = $this->getGallery($id);

        $this->galleryManager->delete($gallery);

        return ['deleted' => true];
    }
public function deleteGalleryAction($id)
    {
        $gallery = $this->getGallery($id);

        $this->galleryManager->delete($gallery);

        return ['deleted' => true];
    }
public function deleteGalleryAction ( $ id ) { $ gallery = $ this -> getGallery ( $ id ) ; $ this -> galleryManager -> delete ( $ gallery ) ; return [ 'deleted' => true ] ; }
Deletes a gallery.

@ApiDoc(
requirements={
{"name"="id", "dataType"="integer", "requirement"="\d+", "description"="gallery identifier"}
},
statusCodes={
200="Returned when gallery is successfully deleted",
400="Returned when an error has occurred while gallery deletion",
404="Returned when unable to find gallery"
}
)

@param int $id A Gallery identifier

@throws NotFoundHttpException

@return View
Deletes a gallery .