| 1 | <?php |
||
| 16 | class Config |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The temporary storage for the accumulator. |
||
| 21 | * |
||
| 22 | * @var \ArrayObject |
||
| 23 | */ |
||
| 24 | protected static $battery; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $config |
||
| 28 | * @param bool $override Used for testing only! |
||
| 29 | */ |
||
| 30 | public static function load(array $config, $override = false) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get an item from an array using "dot" notation. |
||
| 39 | * |
||
| 40 | * @param string|integer $index The index or identifier. |
||
| 41 | * @param mixed $default |
||
| 42 | * |
||
| 43 | * @return mixed|null |
||
| 44 | */ |
||
| 45 | public static function get($index, $default = null) |
||
| 64 | } |
||
| 65 |