12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace League\Flysystem;
- trait ConfigAwareTrait
- {
-
- protected $config;
-
- protected function setConfig($config)
- {
- $this->config = $config ? Util::ensureConfig($config) : new Config;
- }
-
- public function getConfig()
- {
- return $this->config;
- }
-
- protected function prepareConfig(array $config)
- {
- $config = new Config($config);
- $config->setFallback($this->getConfig());
- return $config;
- }
- }
|