Files
assetsmanifest-plugin/classes/ManifestReader.php

17 lines
338 B
PHP
Raw Normal View History

2021-09-13 17:15:33 +03:00
<?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;
}
}