Constructor.
string $dir The base web directory:
public function __construct($dir, array $varValues = array()) {
foreach ($varValues as $var => $values) {
foreach ($values as $value) {
if (!is_string($value)) {
throw new \InvalidArgumentException(sprintf('All variable values must be strings, but got %s for variable "%s".', json_encode($value), $var));
}
}
}
$this->dir = $dir;
$this->varValues = $varValues;
}