Lines Matching refs:source
24 private $source; variable in Assetic\\Asset\\FileAsset
29 * @param string $source An absolute path
37 …public function __construct($source, $filters = array(), $sourceRoot = null, $sourcePath = null, a… argument
40 $sourceRoot = dirname($source);
42 $sourcePath = basename($source);
45 if (0 !== strpos($source, $sourceRoot)) {
46 …umentException(sprintf('The source "%s" is not in the root directory "%s"', $source, $sourceRoot));
49 $sourcePath = substr($source, strlen($sourceRoot) + 1);
52 $this->source = $source;
59 $source = VarUtils::resolve($this->source, $this->getVars(), $this->getValues());
61 if (!is_file($source)) {
62 throw new \RuntimeException(sprintf('The source file "%s" does not exist.', $source));
65 $this->doLoad(file_get_contents($source), $additionalFilter);
70 $source = VarUtils::resolve($this->source, $this->getVars(), $this->getValues());
72 if (!is_file($source)) {
73 throw new \RuntimeException(sprintf('The source file "%s" does not exist.', $source));
76 return filemtime($source);