Merge pull request #290 from radiorabe/fix/legacy_constructors

Update legacy constructors
This commit is contained in:
Robb 2017-09-11 11:16:38 -04:00 committed by GitHub
commit a3a00d77aa
3 changed files with 3 additions and 8 deletions

View File

@ -8,7 +8,7 @@ class Amazon_S3StorageBackend extends StorageBackend
private $s3Client;
private $proxyHost;
public function Amazon_S3StorageBackend($securityCredentials)
public function __construct($securityCredentials)
{
$this->setBucket($securityCredentials['bucket']);
$this->setAccessKey($securityCredentials['api_key']);

View File

@ -2,11 +2,6 @@
class FileStorageBackend extends StorageBackend
{
//Stub class
public function FileStorageBackend()
{
}
public function getAbsoluteFilePath($resourceId)
{
//TODO
@ -32,4 +27,4 @@ class FileStorageBackend extends StorageBackend
{
return "";
}
}
}

View File

@ -14,7 +14,7 @@ class ProxyStorageBackend extends StorageBackend
* Receives the file's storage backend and instantiates the appropriate
* object.
*/
public function ProxyStorageBackend($storageBackend)
public function __construct($storageBackend)
{
$CC_CONFIG = Config::getConfig();