Skip to content

Commit

Permalink
Allow setting RAXSDK_TIMEOUT, but define default timeout if not previ…
Browse files Browse the repository at this point in the history
…ously defined (#24)

* Update OpenCloud.php

* Update OpenCloud.php

* RAXSDK_TIMEOUT definition from Laravel Config

* add raxsdk_timeout to Laravel Config
  • Loading branch information
carlaron authored and thomaswelton committed May 16, 2016
1 parent b6d5139 commit eac77ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Thomaswelton/LaravelRackspaceOpencloud/OpenCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use \File;
use Alchemy\Zippy\Zippy;

// 5 minutes
define('RAXSDK_TIMEOUT', 300);
define('RAXSDK_TIMEOUT', Config::get('laravel-rackspace-opencloud::raxsdk_timeout'));

class OpenCloud extends \OpenCloud\Rackspace{

Expand Down
3 changes: 2 additions & 1 deletion src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
'region' => 'RACKSPACE_REGION',
'username' => 'RACKSPACE_USERNAME',
'apiKey' => 'RACKSPACE_API_KEY',
'container' => 'DEFUALT_CONTAINER_NAME'
'container' => 'DEFUALT_CONTAINER_NAME',
'raxsdk_timeout' => 300
);

0 comments on commit eac77ba

Please sign in to comment.