Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct() |
||
19 | { |
||
20 | # Check if preper env vars are setup |
||
21 | if (!($region = getenv("AWS_DEFAULT_REGION"))) |
||
22 | throw new CpeSdk\CpeException("Set 'AWS_DEFAULT_REGION' environment variable!"); |
||
23 | |||
24 | // SWF client |
||
25 | $this->swf = SwfClient::factory(array( |
||
26 | 'region' => $region |
||
27 | )); |
||
28 | } |
||
29 | } |