SilverStripe\Assets\Flysystem\GeneratedAssets
Simple Flysystem implementation of GeneratedAssetHandler for storing generated content
Synopsis
class GeneratedAssets
implements
GeneratedAssetHandler
{
- // members
- protected Filesystem $assetStore = NULL;
- // methods
- public $this setFilesystem()
- public Filesystem getFilesystem()
- public void getContentURL()
- public void getContent()
- protected bool checkOrCreate()
- public void setContent()
- public void removeContent()
Hierarchy
Members
protected
- $assetStore
—
League\Flysystem\Filesystem
Flysystem store for files
Methods
protected
- checkOrCreate() — Check if the file exists or that the $callback provided was able to regenerate it.
public
- getContent()
- getContentURL()
- getFilesystem() — Get the asset backend
- removeContent()
- setContent()
- setFilesystem() — Assign the asset backend. This must be a filesystem with an adapter of type {@see PublicAdapter}.