1616use Inhere \Library \Files \Directory ;
1717use Inhere \Library \Files \File ;
1818use Inhere \Library \Helpers \UrlHelper ;
19- use Inhere \LibraryPlus \Html \Html ;
2019use Inhere \Library \StdObject ;
20+ use Inhere \LibraryPlus \Html \Html ;
2121use MatthiasMullie \Minify ;
2222
2323/**
2424 * Class AssetLoad
2525 * @package Inhere\Library\asset
26- *
2726 * usage (in template file):
28- *
2927 * <?php
30- *
3128 * echo AssetLoad::css([
3229 * 'xx/zz.css',
3330 * ])->dump();
34- *
3531 */
3632class AssetLoad extends StdObject
3733{
@@ -146,9 +142,7 @@ public static function js($asset, array $options = [])
146142 }
147143
148144 /**
149- *
150145 * @param string|array $assets 要加载的资源
151- *
152146 * 1. $assets = 'file path' 加载一个文件
153147 * 2. $assets = 'a,b,c' 加载 a,b,c 多个文件
154148 * 3. 直接使用数组配置
@@ -159,7 +153,6 @@ public static function js($asset, array $options = [])
159153 * 'file4',
160154 * ...
161155 * ]
162- *
163156 * @param string $assetType 资源文件类型 css js
164157 * @return $this
165158 * @throws InvalidArgumentException
@@ -486,18 +479,15 @@ public function setCheckFileExists($value)
486479
487480 /**
488481 * get base path
489- *
490482 * maybe path use alias. (e.g. like '@app' --> '/xx/yy/app')
491483 * you can define
492- *
493484 * $this->resolvePath = function($path) {
494485 * if ( $path{0} ==='@' ) {
495486 * // some handle logic ... ...
496487 * // $path = App::resolvePath($basePath);
497488 * }
498489 * return $path;
499490 * }
500- *
501491 * @return string
502492 */
503493 public function getBasePath ()
0 commit comments