1 | <?php |
||
15 | class Resource |
||
16 | { |
||
17 | /** |
||
18 | * Build correct relative path to static resource using relative path and parent path. |
||
19 | * |
||
20 | * @param string $relativePath Relative path to static resource |
||
21 | * @param string $parentPath Path to parent entity |
||
22 | * |
||
23 | * @return string Validated relative path to static resource |
||
24 | * @throws ResourceNotFound |
||
25 | */ |
||
26 | public static function getRelativePath($relativePath, $parentPath = '') |
||
43 | } |
||
44 |