From 0f8f7a439a838cc6bc64480b35963125845d468f Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Wed, 20 Feb 2019 12:40:09 +0100 Subject: [PATCH] debug --- StorageBundle/Storage.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/StorageBundle/Storage.php b/StorageBundle/Storage.php index 27c151a..4bef5ca 100644 --- a/StorageBundle/Storage.php +++ b/StorageBundle/Storage.php @@ -20,13 +20,15 @@ class Storage public function get($storage_name) { - dump($this->config_storage, $storage_name, array_key_exists($storage_name, $this->config_storage)); die; if (array_key_exists($storage_name, $this->config_storage)) { $config = $this->config_storage[$storage_name]; - if ($config['type'] == 's3') - return (new S3Storage($storage_name, $config)); + switch ($config['type']) + { + case 's3': return (new S3Storage($storage_name, $config)); + } + } return (null);