Constructor.
string $dir The base web directory:
array $values Variable values:
\InvalidArgumentException if a variable value is not a string
public function __construct($dir, array $values = array()) {
foreach ($values as $var => $vals) {
foreach ($vals 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->values = $values;
}