diff --git a/src/Storage.php b/src/Storage.php index 26b54f9..055c7db 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -41,6 +41,11 @@ class Storage */ protected $settings; + /** + * @var array + */ + protected $config = []; + /** * Storage constructor. * @@ -143,6 +148,18 @@ public function getDriver() return $this->driver; } + /** + * @return array + */ + public function getConfig($key = null) + { + if (!is_null($key)) { + return $this->config[$key] ?? null; + } + + return $this->config; + } + /** * @param $adapter * @param $file