CombinesAssets
trait CombinesAssets
Properties
protected array | $bundles | ||
protected array | $filters | ||
protected string | $storagePath | ||
bool | $cacheKeyPrefix | ||
bool | $useCache | ||
bool | $useMinify | ||
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 55
protected
initCombiner()
No description
at line 100
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 143
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 156
combineGetContents($cacheKey)
No description
at line 186
protected
prepareAssets(array $assets)
No description
at line 195
protected
prepareCombiner(array $assets, $targetPath = null)
No description
at line 237
protected string
getCombinerPath(string|null $path = null)
Returns the target path used with the combiner.
/index.php/_assets returns index-php/_assets/
at line 250
protected
applyCacheOnFiles($files)
No description
at line 282
CombinesAssets
registerFilter(string|array $extension, object $filter)
Register a filter to apply to the combining process.
at line 315
void
registerBundle($extension, $files, null $destination = null, string $appContext = 'main')
Registers bundle.
at line 351
array
getBundles(string $extension = null, string $appContext = 'main')
Returns bundles.
at line 369
array
getFilters(string $extension = null)
Returns filters.
at line 387
CombinesAssets
resetFilters(string $extension = null)
Clears any registered filters.
at line 403
protected
getCacheKey(array $assets)
No description
at line 410
protected
getCache($cacheKey)
No description
at line 419
protected
putCache($cacheKey, $cacheData)
No description