public function zipResourceFile($file, $resource)
    {
        if (!$this->zip->addFromString($file, json_encode($resource, JSON_UNESCAPED_SLASHES))) {
            throw new InternalServerErrorException("Failed to add $file to the Zip Archive.");
        }
    }
public function zipResourceFile($file, $resource)
    {
        if (!$this->zip->addFromString($file, json_encode($resource, JSON_UNESCAPED_SLASHES))) {
            throw new InternalServerErrorException("Failed to add $file to the Zip Archive.");
        }
    }
public function zipResourceFile ( $ file , $ resource ) { if ( ! $ this -> zip -> addFromString ( $ file , json_encode ( $ resource , JSON_UNESCAPED_SLASHES ) ) ) { throw new InternalServerErrorException ( "Failed to add $file to the Zip Archive." ) ; } }
Adds resource file to ZipArchive.

@param $file
@param $resource

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Adds resource file to ZipArchive .