ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ConfigAwareTrait.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
League\Flysystem
;
4
8
trait
ConfigAwareTrait
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
}
League\Flysystem\setConfig
setConfig($config)
Set the config.
Definition:
ConfigAwareTrait.php:20
$config
$config
Definition:
bootstrap.php:15
League\Flysystem
League\Flysystem\prepareConfig
prepareConfig(array $config)
Convert a config array to a Config object with the correct fallback.
Definition:
ConfigAwareTrait.php:42
League\Flysystem\Util\ensureConfig
static ensureConfig($config)
Ensure a Config instance.
Definition:
Util.php:226
League\Flysystem\Config
Definition:
Config.php:5
League\Flysystem\getConfig
getConfig()
Get the Config.
Definition:
ConfigAwareTrait.php:30
php
ConfigAwareTrait
libs
composer
vendor
league
flysystem
src
ConfigAwareTrait.php
Generated on Thu Feb 27 2025 19:01:20 for ILIAS by
1.8.13 (using
Doxyfile
)