| @@ 140-151 (lines=12) @@ | ||
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| 140 | private function decode($json, $path) |
|
| 141 | { |
|
| 142 | try { |
|
| 143 | return $this->jsonDecoder->decode($json); |
|
| 144 | } catch (DecodingFailedException $e) { |
|
| 145 | throw new InvalidConfigException(sprintf( |
|
| 146 | 'The configuration in %s could not be decoded: %s', |
|
| 147 | $path, |
|
| 148 | $e->getMessage() |
|
| 149 | ), 0, $e); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | } |
|
| @@ 254-265 (lines=12) @@ | ||
| 251 | } |
|
| 252 | } |
|
| 253 | ||
| 254 | private function decode($json, $path) |
|
| 255 | { |
|
| 256 | try { |
|
| 257 | return $this->jsonDecoder->decode($json); |
|
| 258 | } catch (DecodingFailedException $e) { |
|
| 259 | throw new InvalidConfigException(sprintf( |
|
| 260 | 'The configuration in %s could not be decoded: %s', |
|
| 261 | $path, |
|
| 262 | $e->getMessage() |
|
| 263 | ), 0, $e); |
|
| 264 | } |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||