public function __construct($name, array $options = [])
{
$this->name = $name;
foreach ($options as $key => $value) {
switch ($key) {
case 'path':
$this->{$key} = $value;
break;
default:
if ($value !== null) {
throw new Exception(sprintf('An unknown option "%s" was specified in the configuration of a resource FileSystemStorage. Please check your settings.', $key), 1361533187);
}
}
}
}