SilverStripe\Assets\Flysystem\PublicAssetAdapter
Synopsis
class PublicAssetAdapter
extends AssetAdapter
implements
PublicAdapter
{
- // members
- protected $parentUrlPrefix = NULL;
- private static array $server_configuration = ;
- // methods
- protected void findRoot()
- public string|null getPublicUrl()
- protected void initParentURLPrefix()
- // Inherited methods from AssetAdapter
- public void __construct()
- public static array normalisePermissions()
- protected string findRoot()
- public void flush()
- protected void configureServer()
- protected string renderTemplate()
Hierarchy
Extends
Implements
Members
private
- $server_configuration
—
array
Server specific configuration necessary to block http traffic to a local folder
protected
- $parentUrlPrefix
—
string
Prefix between the root url and base of the assets folder Used for generating public urls
Methods
protected
- findRoot()
- initParentURLPrefix() — Initialise parent URL prefix
public
- getPublicUrl() — Provide downloadable url
Inherited from SilverStripe\Assets\Flysystem\AssetAdapter
protected
- configureServer() — Configure server files for this store
- findRoot() — Determine the root folder absolute system path
- renderTemplate() — Render server configuration file from a template file
public
- flush() — Force flush and regeneration of server files
- normalisePermissions() — Converts strings to octal permission codes. E.g. '0700' => 0700