Initial commit
This commit is contained in:
16
classes/ManifestReader.php
Normal file
16
classes/ManifestReader.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user