diff options
Diffstat (limited to 'src/JsonManifestParser.php')
-rw-r--r-- | src/JsonManifestParser.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/JsonManifestParser.php b/src/JsonManifestParser.php new file mode 100644 index 0000000..9293af1 --- /dev/null +++ b/src/JsonManifestParser.php @@ -0,0 +1,13 @@ +<?php + +namespace Lightscale\LaralightAssets; + +use Lightscale\LaralightAssets\Contracts\ManifestParser; + +class JsonManifestParser implements ManifestParser +{ + public function parse(string $data): array + { + return json_decode($data, true); + } +} |