function requireAsset($path)
{
$resolvedPath = $this->resolve($path);
if (null === $resolvedPath) {
throw new \UnexpectedValueException("Asset {$path} not found");
}
$asset = $this->environment->find($resolvedPath);
if (!in_array($resolvedPath, $this->requiredPaths)) {
$this->dependOn($resolvedPath);
$processors = is_callable(array($asset, "getProcessors")) ? $asset->getProcessors() : array();
$this->dependencyAssets[] = $this->evaluate($resolvedPath, array("processors" => $processors), $path);
$this->requiredPaths[] = $resolvedPath;
}
return $this;
}