Add a comment about the proxy pattern

This commit is contained in:
Albert Santoni 2014-12-16 14:54:53 -05:00
parent ff0a685243
commit 7059820ca0

View file

@ -19,7 +19,10 @@ class ProxyStorageBackend extends StorageBackend
public function ProxyStorageBackend($storageBackend)
{
$CC_CONFIG = Config::getConfig();
//The storage backend in the airtime.conf directly corresponds to
//the name of the class that implements it (eg. Amazon_S3), so we
//can easily create the right backend object dynamically:
$this->storageBackend = new $storageBackend($CC_CONFIG[$storageBackend]);
}