Documentation

AssetProxy
in package

Table of Contents

$mounts  : array<string|int, mixed>
__construct()  : mixed
registerWebRootSource()  : void
This function registers a directory on disk as a source of assets to be served by the proxy.
serve()  : void

Properties

$mounts

private array<string|int, mixed> $mounts = []

Methods

__construct()

public __construct() : mixed
Return values
mixed

registerWebRootSource()

This function registers a directory on disk as a source of assets to be served by the proxy.

public registerWebRootSource(string $sourceRoot[, string $urlPrefix = '' ]) : void

This does not immediately check the filesystem and will only fail once a request is made for an asset that belongs to this mount. The sourceRoot should be an absolute path.

Parameters
$sourceRoot : string
$urlPrefix : string = ''
Return values
void

serve()

public serve(string $assetPath) : void
Parameters
$assetPath : string
Return values
void

Search results