public function thumbnailElement($file_id)
    {
        /** @var LazaretFile $lazaretFile */
        $lazaretFile = $this->getLazaretFileRepository()->find($file_id);

        if (null === $lazaretFile) {
            return new Response(null, 404);
        }

        $lazaretThumbFileName = $this->app['tmp.lazaret.path'].'/'.$lazaretFile->getThumbFilename();

        return $this->deliverFile(
            $lazaretThumbFileName,
            $lazaretFile->getOriginalName(),
            DeliverDataInterface::DISPOSITION_INLINE,
            'image/jpeg'
        );
    }
public function thumbnailElement($file_id)
    {
        /** @var LazaretFile $lazaretFile */
        $lazaretFile = $this->getLazaretFileRepository()->find($file_id);

        if (null === $lazaretFile) {
            return new Response(null, 404);
        }

        $lazaretThumbFileName = $this->app['tmp.lazaret.path'].'/'.$lazaretFile->getThumbFilename();

        return $this->deliverFile(
            $lazaretThumbFileName,
            $lazaretFile->getOriginalName(),
            DeliverDataInterface::DISPOSITION_INLINE,
            'image/jpeg'
        );
    }
public function thumbnailElement ( $ file_id ) { /** @var LazaretFile $lazaretFile */ $ lazaretFile = $ this -> getLazaretFileRepository ( ) -> find ( $ file_id ) ; if ( null === $ lazaretFile ) { return new Response ( null , 404 ) ; } $ lazaretThumbFileName = $ this -> app [ 'tmp.lazaret.path' ] . '/' . $ lazaretFile -> getThumbFilename ( ) ; return $ this -> deliverFile ( $ lazaretThumbFileName , $ lazaretFile -> getOriginalName ( ) , DeliverDataInterface :: DISPOSITION_INLINE , 'image/jpeg' ) ; }
Get the associated lazaret element thumbnail

@param int $file_id A lazaret element id

@return Response
Get the associated lazaret element thumbnail