1 | <?php |
||
26 | class ConfigurationHelper { |
||
27 | |||
28 | /** |
||
29 | * Get a root node. |
||
30 | * |
||
31 | * @param TreeBuilder $treeBuilder The tree builder. |
||
32 | * @param string $nodeName The node name. |
||
33 | * @return ArrayNodeDefinition|NodeDefinition Returns the root node. |
||
34 | */ |
||
35 | public static function getRootNode(TreeBuilder $treeBuilder, $nodeName) { |
||
46 | |||
47 | /** |
||
48 | * Load a YAML configuration. |
||
49 | * |
||
50 | * @param string $filename The filename. |
||
51 | * @return array Returns the YAML configuration. |
||
52 | */ |
||
53 | public static function loadYamlConfig($filename) { |
||
62 | |||
63 | /** |
||
64 | * Register a container parameter. |
||
65 | * |
||
66 | * @param Container $container The container. |
||
67 | * @param array $config The configuration. |
||
68 | * @param string $alias The alias. |
||
69 | * @param string $key The key. |
||
70 | * @return void |
||
71 | */ |
||
72 | public static function registerContainerParameter(Container $container, array $config, $alias, $key) { |
||
78 | |||
79 | /** |
||
80 | * Register the container parameters. |
||
81 | * |
||
82 | * @param Container $container The container. |
||
83 | * @param array $config The configuration. |
||
84 | * @return void |
||
85 | */ |
||
86 | public static function registerContainerParameters(Container $container, array $config) { |
||
91 | } |
||
92 |