17 lines
338 B
PHP
17 lines
338 B
PHP
|
<?php namespace Wpstudio\AssetsManifest\Classes;
|
||
|
|
||
|
class ManifestReader
|
||
|
{
|
||
|
private $manifest = null;
|
||
|
|
||
|
public function __construct(string $manifestPath)
|
||
|
{
|
||
|
$this->manifest = json_decode(file_get_contents($manifestPath));
|
||
|
}
|
||
|
|
||
|
public function get($assetName)
|
||
|
{
|
||
|
return $this->manifest->$assetName;
|
||
|
}
|
||
|
}
|