| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait HasAssets |
||
| 8 | { |
||
| 9 | use HasModule; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Files to publish in the system |
||
| 13 | * By default files in the Public subfolder are published as assets |
||
| 14 | * to the public path under modules/<module alias> |
||
| 15 | * |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | public static function assets() |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Path to the module public directory. |
||
| 25 | * |
||
| 26 | * @return string path to the module directory |
||
| 27 | */ |
||
| 28 | public static function publicPath() { |
||
| 30 | } |
||
| 31 | |||
| 32 | final public static function publishAssets() |
||
| 33 | { |
||
| 34 | File::copyDirectory(self::assets(), self::publicPath()); |
||
| 35 | } |
||
| 36 | |||
| 37 | final public static function unpublishAssets() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |