From a58398adf025dafe44e3adc5d3e7cc6aa7a14496 Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Wed, 20 Feb 2019 13:03:37 +0100 Subject: [PATCH] debug --- StorageBundle/Adaptors/S3Storage.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/StorageBundle/Adaptors/S3Storage.php b/StorageBundle/Adaptors/S3Storage.php index 129cce7..79ca6c6 100644 --- a/StorageBundle/Adaptors/S3Storage.php +++ b/StorageBundle/Adaptors/S3Storage.php @@ -21,11 +21,8 @@ class S3Storage public function __construct ($storage_name, $config) { - // TODO: on check la présence de "bucket", "region", "endpoint", "credentials" ("key", "secret") dans $config - - if ($this->configIsNotNormed($config)) + if (!($this->configIsNormed($config))) throw new Exception("Error from config file :("); -// if (isset($config['bucket']) && isset($config)) $this->config = $config; $this->bucket = $config['bucket']; @@ -41,7 +38,7 @@ class S3Storage ]); } - private function configIsNotNormed($config) + private function configIsNormed($config) { return ( isset($config['type']) &&