| 1 | <?php |
||
| 23 | class ContainerDecoderProvider implements DecoderProviderInterface |
||
| 24 | { |
||
| 25 | private $container; |
||
| 26 | private $decoders; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $decoders List of key (format) value (service ids) of decoders |
||
| 30 | */ |
||
| 31 | 54 | public function __construct(ContainerInterface $container, array $decoders) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 10 | public function supports($format) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 9 | public function getDecoder($format) |
|
| 56 | } |
||
| 57 |