Lines Matching refs:root
33 private $root; variable in Assetic\\Factory\\AssetFactory
43 * @param string $root The default root directory
46 public function __construct($root, $debug = false) argument
48 $this->root = rtrim($root, '/');
176 $options['root'] = array($this->root);
182 $options['root'][] = $this->root;
314 if ($root = self::findRootDir($input, $options['root'])) {
315 $path = ltrim(substr($input, strlen($root)), '/');
320 $root = $this->root;
322 $input = $this->root.'/'.$path;
326 return $this->createGlobAsset($input, $root, $options['vars']);
329 return $this->createFileAsset($input, $root, $path, $options['vars']);
351 protected function createGlobAsset($glob, $root = null, $vars) argument
353 return new GlobAsset($glob, array(), $root, $vars);
356 protected function createFileAsset($source, $root = null, $path = null, $vars) argument
358 return new FileAsset($source, array(), $root, $path, $vars);
418 foreach ($roots as $root) {
419 if (0 === strpos($path, $root)) {
420 return $root;