CombinesAssets
trait CombinesAssets
Properties
protected array | $bundles | ||
protected array | $filters | ||
protected string | $storagePath | ||
bool | $cacheKeyPrefix | ||
bool | $useCache | ||
protected | $assetsCombinerUri | ||
protected | $combineAssets |
Methods
No description
Combines JavaScript or StyleSheet file references to produce a page relative URL to the combined contents.
Combines a collection of assets files to a destination file
No description
No description
No description
Returns the target path used with the combiner.
No description
Register a filter to apply to the combining process.
Registers bundle.
Returns bundles.
Returns filters.
Clears any registered filters.
No description
No description
No description
Details
at line 50
protected
initCombiner()
No description
at line 86
string
combine(string $type, array $assets = [])
Combines JavaScript or StyleSheet file references to produce a page relative URL to the combined contents.
$assets = [ 'assets/css/vendor/animate.css', 'assets/css/vendor/dropzone.css', 'assets/css/vendor/select2.min.css', ];
Assets::combine('css', $assets);
at line 129
void
combineToFile(array $assets, string $destination)
Combines a collection of assets files to a destination file
$assets = [ 'assets/scss/flame.scss', 'assets/scss/main.scss', ];
CombineAssets::combineToFile( $assets, base_path('themes/demo/assets/css/theme.css'), );
at line 142
combineGetContents($cacheKey)
No description
at line 172
protected
prepareAssets(array $assets)
No description
at line 181
protected
prepareCombiner(array $assets, $targetPath = null)
No description
at line 227
protected string
getCombinerPath(string|null $path = null)
Returns the target path used with the combiner.
/index.php/_assets returns index-php/_assets/
at line 240
protected
applyCacheOnFiles($files)
No description
at line 272
CombinesAssets
registerFilter(string|array $extension, object $filter)
Register a filter to apply to the combining process.
at line 305
void
registerBundle($extension, $files, null $destination = null, string $appContext = 'main')
Registers bundle.
at line 341
array
getBundles(string $extension = null, string $appContext = 'main')
Returns bundles.
at line 359
array
getFilters(string $extension = null)
Returns filters.
at line 377
CombinesAssets
resetFilters(string $extension = null)
Clears any registered filters.
at line 393
protected
getCacheKey(array $assets)
No description
at line 400
protected
getCache($cacheKey)
No description
at line 409
protected
putCache($cacheKey, $cacheData)
No description