| @@ 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 | ||
| @@ 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 | } |
|