Assetic\Asset\FileAsset::__construct
Constructor.
Signature
public function __construct(string
$source,
[array
$filters = null,
[string
$sourceRoot = null,
[string
$sourcePath = null,
array
$vars]]] )
Parameters
$source
—
string
- An absolute path
$filters
—
array
- An array of filters
$sourceRoot
—
string
- The source asset root directory
$sourcePath
—
string
- The source asset path
$vars
—
array
Errors/Exceptions
-
InvalidArgumentException
- If the supplied root doesn't match the source when guessing the path