ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ConfigAwareTrait.php
Go to the documentation of this file.
1 <?php
2 
3 namespace League\Flysystem;
4 
9 {
13  protected $config;
14 
20  protected function setConfig($config)
21  {
22  $this->config = $config ? Util::ensureConfig($config) : new Config;
23  }
24 
30  public function getConfig()
31  {
32  return $this->config;
33  }
34 
42  protected function prepareConfig(array $config)
43  {
44  $config = new Config($config);
45  $config->setFallback($this->getConfig());
46 
47  return $config;
48  }
49 }
setConfig($config)
Set the config.
$config
Definition: bootstrap.php:15
prepareConfig(array $config)
Convert a config array to a Config object with the correct fallback.
static ensureConfig($config)
Ensure a Config instance.
Definition: Util.php:226
getConfig()
Get the Config.