| 1 | <?php |
||
| 5 | class CacheBuster |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Resolve path for versioned resource file. |
||
| 9 | * |
||
| 10 | * @param string $path Unversioned file path. |
||
| 11 | * @param string $jsonData Json object. |
||
| 12 | * @param string $root Location of files in /public. |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function resolvePath($path, $jsonData, $root) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get json data from rev manifest and check for null. |
||
| 33 | * |
||
| 34 | * @param string $path Unversioned file path. |
||
| 35 | * @param string $jsonData Json object. |
||
| 36 | * @param string $root Location of files in /public. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | protected function validateJsonData($path, $jsonData, $root) |
||
| 52 | } |
||
| 53 |