| 1 | <?php |
||
| 20 | class ConfigParser |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Parse configuration. |
||
| 24 | * |
||
| 25 | * @param NodeInterface $node |
||
| 26 | * @param array $configs |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public static function parse(NodeInterface $node, array $configs) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Parse configs from config definition. |
||
| 47 | * |
||
| 48 | * @param ConfigDefinitionInterface $config |
||
| 49 | * @param array $configs |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public static function parseConfiguration(ConfigDefinitionInterface $config, array $configs) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Initialize start config. |
||
| 60 | * |
||
| 61 | * @param NodeInterface $node |
||
| 62 | * |
||
| 63 | * @return array|null |
||
| 64 | */ |
||
| 65 | private static function initializeCurrentConfig(NodeInterface $node) |
||
| 69 | } |
||
| 70 |