@@ 171-182 (lines=12) @@ | ||
168 | } |
|
169 | } |
|
170 | ||
171 | private function decode($json, $path) |
|
172 | { |
|
173 | try { |
|
174 | return $this->jsonDecoder->decode($json); |
|
175 | } catch (DecodingFailedException $e) { |
|
176 | throw new InvalidConfigException(sprintf( |
|
177 | 'The configuration in %s could not be decoded: %s', |
|
178 | $path, |
|
179 | $e->getMessage() |
|
180 | ), 0, $e); |
|
181 | } |
|
182 | } |
|
183 | } |
|
184 |
@@ 246-257 (lines=12) @@ | ||
243 | } |
|
244 | } |
|
245 | ||
246 | private function decode($json, $path) |
|
247 | { |
|
248 | try { |
|
249 | return $this->jsonDecoder->decode($json); |
|
250 | } catch (DecodingFailedException $e) { |
|
251 | throw new InvalidConfigException(sprintf( |
|
252 | 'The configuration in %s could not be decoded: %s', |
|
253 | $path, |
|
254 | $e->getMessage() |
|
255 | ), 0, $e); |
|
256 | } |
|
257 | } |
|
258 | } |
|
259 |