From 7059820ca01df839b4c23a02d76709edb7f4ab92 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 16 Dec 2014 14:54:53 -0500 Subject: [PATCH] Add a comment about the proxy pattern --- .../application/cloud_storage/ProxyStorageBackend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php b/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php index 78aeb1b35..651063367 100644 --- a/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php +++ b/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php @@ -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]); }