14 lines
265 B
PHP
14 lines
265 B
PHP
<?php
|
|
namespace nulib\app\config;
|
|
|
|
use nulib\ext\yaml;
|
|
|
|
/**
|
|
* Class YamlConfig: une configuration chargée depuis un fichier yaml
|
|
*/
|
|
class YamlConfig extends ArrayConfig {
|
|
function __construct(string $input) {
|
|
parent::__construct(yaml::load($input));
|
|
}
|
|
}
|