46 throw new \InvalidArgumentException(sprintf(
'The source "%s" is not in the root directory "%s"',
$source,
$sourceRoot));
62 throw new \RuntimeException(sprintf(
'The source file "%s" does not exist.',
$source));
73 throw new \RuntimeException(sprintf(
'The source file "%s" does not exist.',
$source));
static resolve($template, array $vars, array $values)
Resolves variable placeholders.
load(FilterInterface $additionalFilter=null)
Loads the asset into memory and applies load filters.
doLoad($content, FilterInterface $additionalFilter=null)
Encapsulates asset loading logic.
__construct($source, $filters=array(), $sourceRoot=null, $sourcePath=null, array $vars=array())
Constructor.
Represents an asset loaded from a file.
A filter manipulates an asset at load and dump.
getVars()
Returns an array of variable names for this asset.
Create styles array
The data for the language used.
getLastModified()
Returns the time the current asset was last modified.
getValues()
Returns the current values for this asset.