1 | <?php |
||
16 | class View extends \samsonframework\view\View |
||
17 | { |
||
18 | /** @var SystemInterface Pointer to system interface */ |
||
19 | public static $system; |
||
20 | |||
21 | /** |
||
22 | * Generate url for resource path that is not accessible by web-server. |
||
23 | * |
||
24 | * @param string $path Path to resource |
||
25 | * @param string $parentPath Path to parent entity |
||
26 | * @param string $controller Url to controller for handling resource serving |
||
27 | * |
||
28 | * @return string Url for resource serving |
||
29 | * TODO: Remove dependency from constant from samsonphp/resource |
||
30 | * TODO: How to point static resource from one vendor module to another, |
||
31 | * we use this in SamsonCMS to share template images across modules to avoid |
||
32 | * static resources duplication. Defining path throw vendor is not an option. |
||
33 | * Specifying identifier as second parameter to view()? |
||
34 | * @throws \samsonphp\resource\exception\ResourceNotFound |
||
35 | */ |
||
36 | public function src($path, $parentPath = '', $controller = STATIC_RESOURCE_HANDLER) |
||
40 | } |
||
41 |