1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Core\Facade; |
4: | |
5: | use Salient\Core\ConfigurationManager; |
6: | |
7: | /** |
8: | * A facade for ConfigurationManager |
9: | * |
10: | * @method static array<string,mixed[]> all() Get all configuration values |
11: | * @method static mixed get(string $key, mixed $default = null) Get a configuration value |
12: | * @method static array<string,mixed> getMultiple(iterable<string> $keys, mixed $default = null) Get multiple configuration values |
13: | * @method static bool has(string $key) Check if a configuration value exists |
14: | * @method static ConfigurationManager loadDirectory(string $directory) Load values from files in a directory |
15: | * |
16: | * @api |
17: | * |
18: | * @extends Facade<ConfigurationManager> |
19: | * |
20: | * @generated |
21: | */ |
22: | final class Config extends Facade |
23: | { |
24: | /** |
25: | * @internal |
26: | */ |
27: | protected static function getService() |
28: | { |
29: | return ConfigurationManager::class; |
30: | } |
31: | } |
32: |