Initial commit

This commit is contained in:
2021-09-13 17:15:33 +03:00
commit ae36a5cb0a
5 changed files with 136 additions and 0 deletions

View 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;
}
}