public function __construct(array $params = [])
{
$this->params = array_replace($this->params, $params);
// Make sure the scale factor is a negative number if it exists
if (isset($this->params['scaleFactor']) && $this->params['scaleFactor'] >= 1) {
throw new InvalidArgumentException('Scale factor must be below 1', 503);
}
$this->configureDatabase($this->params);
$this->configureStorage($this->params);
}