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