| 1 | <?php |
||
| 21 | final class ContainerDecoderProvider implements DecoderProviderInterface |
||
| 22 | { |
||
| 23 | private $container; |
||
| 24 | private $decoders; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $decoders List of key (format) value (service ids) of decoders |
||
| 28 | */ |
||
| 29 | 48 | public function __construct(ContainerInterface $container, array $decoders) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 9 | public function supports($format) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 8 | public function getDecoder($format) |
|
| 54 | } |
||
| 55 |