asseticize()
asseticize(string $asset_path, \Thelia\Core\Template\Assets\unknown $output_path, \Thelia\Core\Template\Assets\unknown $output_url, \Thelia\Core\Template\Assets\unknown $asset_type, \Thelia\Core\Template\Assets\unknown $filters, \Thelia\Core\Template\Assets\unknown $debug) : string
Generates assets from $asset_path in $output_path, using $filters.
Parameters
| string | $asset_path | the full path to the asset file (or file collection) |
| \Thelia\Core\Template\Assets\unknown | $output_path | the full disk path to the output directory (shoud be visible to web server) |
| \Thelia\Core\Template\Assets\unknown | $output_url | the URL to the generated asset directory |
| \Thelia\Core\Template\Assets\unknown | $asset_type | the asset type: css, js, ... The generated files will have this extension. Pass an empty string to use the asset source extension. |
| \Thelia\Core\Template\Assets\unknown | $filters | a list of filters, as defined below (see switch($filter_name) ...) |
| \Thelia\Core\Template\Assets\unknown | $debug | true / false |
Throws
- \InvalidArgumentException
if an invalid filter name is found
Returns
string —The URL to the generated asset file.