From c58a039256590cb6c88f2aa5ec8c81b41370fa8b Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Wed, 20 Feb 2019 12:38:01 +0100 Subject: [PATCH] debug --- StorageBundle/Storage.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/StorageBundle/Storage.php b/StorageBundle/Storage.php index 67d1c17..f771612 100644 --- a/StorageBundle/Storage.php +++ b/StorageBundle/Storage.php @@ -20,14 +20,15 @@ class Storage public function get($storage_name) { + dump($this->config_storage, $storage_name); 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); + return (new S3Storage($storage_name, $config)); } - return (-2); + return (null); } }