|
@@ 220-227 (lines=8) @@
|
| 217 |
|
$matcher = $this->factory->createCodecMatcher(); |
| 218 |
|
|
| 219 |
|
$config = $environment->getMatcherConfiguration(); |
| 220 |
|
if ((array_key_exists('decoders', $config)) && (is_array($config['decoders']))) { |
| 221 |
|
foreach ($config['decoders'] as $mediaTypeStr => $decoderType) { |
| 222 |
|
$matcher->registerDecoder( |
| 223 |
|
$this->parseMediaTypeString($mediaTypeStr), |
| 224 |
|
$this->registry->getDecoder($decoderType) |
| 225 |
|
); |
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
if ((array_key_exists('encoders', $config)) && (is_array($config['encoders']))) { |
| 230 |
|
foreach ($config['encoders'] as $mediaTypeStr => $encoderType) { |
|
@@ 229-236 (lines=8) @@
|
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
if ((array_key_exists('encoders', $config)) && (is_array($config['encoders']))) { |
| 230 |
|
foreach ($config['encoders'] as $mediaTypeStr => $encoderType) { |
| 231 |
|
$matcher->registerEncoder( |
| 232 |
|
$this->parseMediaTypeString($mediaTypeStr), |
| 233 |
|
$this->registry->getEncoder($encoderType) |
| 234 |
|
); |
| 235 |
|
} |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return $matcher; |
| 239 |
|
} |