KnpLabs/Gaufrette — pull request #195 by stanlemon (2013-07-01 21:04:41+00:00)
Title: Don't override the region by default

By default the client will come into the adapter with a region specified, and if the region is not override it will default to US-East anyhow. By default the 'region' setting it means that set_region() will always be called on the client. This can cause problems if allow_hostname_override() but more importantly if I set a different region on the client when I initially set it up it will get overridden unless I explicitly set the 'region' option.

Consider this example...

```php
true,
'key' => 'mygovcloudkey',
'secret' => 'mygovcloudsecret',
));
$amazonS3->set_region(AmazonS3::REGION_US_GOV1);

// Despite setting this I MUST set 'region' below

$adapter = new Gaufrette\Adapter\AmazonS3($amazonS3, 'mybucket', array(
'region' => AmazonS3::REGION_US_GOV1,
));
```

This change would mean that I could just do:
```php