Skip to content

Commit 48e8197

Browse files
authored
Merge pull request #51 from PlatformCommunity/feature/regions-update
Added Sao Paulo and Johannesburg to Available Regions
2 parents 9f9ebbb + 88b5c03 commit 48e8197

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ BunnyCDNRegion::SINGAPORE = 'sg';
9191

9292
# Oceania
9393
BunnyCDNRegion::SYDNEY = 'syd';
94+
95+
# Africa
96+
BunnyCDNRegion::JOHANNESBURG = 'jh';
97+
98+
# South America
99+
BunnyCDNRegion::BRAZIL = 'br';
94100
```
95101

96102
## Contributing

src/BunnyCDNClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ private static function get_base_url($region): string
3636
BunnyCDNRegion::SYDNEY => 'https://syd.storage.bunnycdn.com/',
3737
BunnyCDNRegion::UNITED_KINGDOM => 'https://uk.storage.bunnycdn.com/',
3838
BunnyCDNRegion::STOCKHOLM => 'https://se.storage.bunnycdn.com/',
39+
BunnyCDNRegion::BRAZIL => 'https://br.storage.bunnycdn.com/',
40+
BunnyCDNRegion::JOHANNESBURG => 'https://jh.storage.bunnycdn.com/',
3941
default => 'https://storage.bunnycdn.com/'
4042
};
4143
}

src/BunnyCDNRegion.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ class BunnyCDNRegion
1818

1919
public const UNITED_KINGDOM = 'uk';
2020

21+
public const BRAZIL = 'br';
22+
23+
public const JOHANNESBURG = 'jh';
24+
2125
public const DEFAULT = self::FALKENSTEIN;
2226
}

0 commit comments

Comments
 (0)