SilverStripe\Assets\Flysystem\AssetAdapter
Adapter for local filesystem based on assets directory
Synopsis
class AssetAdapter
extends Local
{
- // members
- private static array $server_configuration = ;
- private static string $default_server = 'apache';
- private static array $file_permissions = ;
- // methods
- public void __construct()
- public static array normalisePermissions()
- protected string findRoot()
- public void flush()
- protected void configureServer()
- protected string renderTemplate()
Hierarchy
Extends
- League\Flysystem\Adapter\Local
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $default_server
—
string
Default server configuration to use if the server type defined by the environment is not found - $file_permissions
—
array
Config compatible permissions configuration - $server_configuration
—
array
Server specific configuration necessary to block http traffic to a local folder
Methods
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
- __construct()
- flush() — Force flush and regeneration of server files
- normalisePermissions() — Converts strings to octal permission codes. E.g. '0700' => 0700