Constructor - if you're not using the class statically
public function __construct() { $CI =& get_instance(); $accessKey = $CI->config->item('awsAccessKey'); $secretKey = $CI->config->item('awsSecretKey'); parent::__construct($accessKey, $secretKey, true); }
function __construct() { parent::__construct(); $CI =& get_instance(); $this->setAuth($CI->config->item('auth_aws_key_access'), $CI->config->item('auth_aws_key_secret')); }
public function __construct() { $s3AccessKey = sfConfig::get('app_s3_AccessKey'); $s3SecretKey = sfConfig::get('app_s3_SecretKey'); parent::__construct($s3AccessKey, $s3SecretKey, false); }
public function __construct() { parent::__construct(Kohana::$config->load('amazon.account.access_key'), Kohana::$config->load('amazon.account.secret_key')); }
public function __construct() { $config = Config::getInstance()->getConfig('amazon', 's3'); return parent::__construct($config['awsAccessKey'], $config['awsSecretKey'], $config['useSSL']); }