PHP Class Roots\Sage\Assets\JsonManifest

Author: QWp6t
Inheritance: implements Roots\Sage\Assets\ManifestInterface
Show file Open project: roots/sage Class Usage Examples

Public Properties

Property Type Description
$dist string
$manifest array

Public Methods

Method Description
__construct ( string $manifestPath, string $distUri ) JsonManifest constructor
get ( $asset )
getUri ( $asset )

Method Details

__construct() public method

JsonManifest constructor
public __construct ( string $manifestPath, string $distUri )
$manifestPath string Local filesystem path to JSON-encoded manifest
$distUri string Remote URI to assets root

get() public method

public get ( $asset )

getUri() public method

public getUri ( $asset )

Property Details

$dist public property

public string $dist
return string

$manifest public property

public array $manifest
return array