protected function cacheFile(IFile $file, FileFormatter $formatter, string $targetPath): bool
    {
        if ($file instanceof ICacheStateful && $file->getIsCached($formatter->name)) {
            return true;
        }

        return (new Saver($file, $this->cacheFS, $targetPath))->save($formatter);
    }
protected function cacheFile(IFile $file, FileFormatter $formatter, string $targetPath): bool
    {
        if ($file instanceof ICacheStateful && $file->getIsCached($formatter->name)) {
            return true;
        }

        return (new Saver($file, $this->cacheFS, $targetPath))->save($formatter);
    }
protected function cacheFile ( IFile $ file , FileFormatter $ formatter , string $ targetPath ) : bool { if ( $ file instanceof ICacheStateful && $ file -> getIsCached ( $ formatter -> name ) ) { return true ; } return ( new Saver ( $ file , $ this -> cacheFS , $ targetPath ) ) -> save ( $ formatter ) ; }
Caches file available in web.

@param IFile $file
@param FileFormatter $formatter
@param string $targetPath
@return bool
@throws \InvalidArgumentException
@throws InvalidConfigException
@throws \League\Flysystem\FileNotFoundException
Caches file available in web .