Mount
in package
Maps an asset URL onto a directory on disk, optionally scoped to a URL prefix. All filesystem work is deferred to resolve(); construction is just a string trim.
Table of Contents
- $sourceRoot : string
- $urlPrefix : string
- __construct() : mixed
- resolve() : string|null
- Returns the full file path or null if it does not belong to this mount.
Properties
$sourceRoot
public
string
$sourceRoot
$urlPrefix
public
string
$urlPrefix
Methods
__construct()
public
__construct(string $sourceRoot[, string $urlPrefix = "" ]) : mixed
Parameters
- $sourceRoot : string
- $urlPrefix : string = ""
Return values
mixed —resolve()
Returns the full file path or null if it does not belong to this mount.
public
resolve(string $assetPath) : string|null
Parameters
- $assetPath : string