Fix legacy constructors

These go way back to php 4 and don't need to be like this for any
reason. Currently error handling is acting up when these throw an
error.
This commit is contained in:
Lucas Bickel 2017-09-08 19:53:29 +02:00
parent 58875a2187
commit 440e8ce8c9
3 changed files with 3 additions and 8 deletions

View File

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

View File

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

View File

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