public function getDecoder($format) { if (!$this->supports($format)) { throw new \InvalidArgumentException(sprintf("Format '%s' is not supported by PimpleDecoderProvider.", $format)); } return $this->container[$this->decoders[$format]]; }