Sulu\Bundle\MediaBundle\Media\FormatCache\LocalFormatCache::save PHP Method

save() public method

public save ( $content, $id, $fileName, $options, $format )
    public function save($content, $id, $fileName, $options, $format)
    {
        $savePath = $this->getPath($this->path, $id, $fileName, $format);
        if (!is_dir(dirname($savePath))) {
            $this->filesystem->mkdir(dirname($savePath), 0775);
        }
        try {
            $this->filesystem->dumpFile($savePath, $content);
        } catch (IOException $ioException) {
            return false;
        }
        return true;
    }