@@ 85-92 (lines=8) @@ | ||
82 | * |
|
83 | * @param array $configs |
|
84 | */ |
|
85 | private function loadParametersFromConfig(array &$configs) |
|
86 | { |
|
87 | if (isset($configs['parameters']) && is_array($configs['parameters'])) { |
|
88 | $this->container->getParameterBag()->add(array_merge($configs['parameters'], $this->envs)); |
|
89 | ||
90 | unset($configs['parameters']); |
|
91 | } |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Load services from config. |
|
@@ 99-105 (lines=7) @@ | ||
96 | * |
|
97 | * @param array $configs |
|
98 | */ |
|
99 | private function loadServicesFromConfig(array &$configs) |
|
100 | { |
|
101 | if (isset($configs['services']) && is_array($configs['services'])) { |
|
102 | $this->container->load($configs['services']); |
|
103 | unset($configs['services']); |
|
104 | } |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @return ExtensionManager |