Skip to content

Commit

Permalink
Resolved #14, add getConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta authored Dec 6, 2018
1 parent f3cfbcf commit 75f136a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ class Storage
*/
protected $settings;

/**
* @var array
*/
protected $config = [];

/**
* Storage constructor.
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 75f136a

Please sign in to comment.