public function addDecoder(DecoderInterface $decoder)
    {
        $mimeTypes = $decoder->getMimeType();
        if ($this->isSupportedMimeType($mimeTypes[0])) {
            return; // we already have the decoder loaded!
        }
        $this->supportedMimeTypes = array_merge($this->supportedMimeTypes, $mimeTypes);
        foreach ($mimeTypes as $type) {
            $this->decoders[$type] = $decoder;
        }
    }
public function addDecoder(DecoderInterface $decoder)
    {
        $mimeTypes = $decoder->getMimeType();
        if ($this->isSupportedMimeType($mimeTypes[0])) {
            return; // we already have the decoder loaded!
        }
        $this->supportedMimeTypes = array_merge($this->supportedMimeTypes, $mimeTypes);
        foreach ($mimeTypes as $type) {
            $this->decoders[$type] = $decoder;
        }
    }
public function addDecoder ( DecoderInterface $ decoder ) { $ mimeTypes = $ decoder -> getMimeType ( ) ; if ( $ this -> isSupportedMimeType ( $ mimeTypes [ 0 ] ) ) { return ; // we already have the decoder loaded! } $ this -> supportedMimeTypes = array_merge ( $ this -> supportedMimeTypes , $ mimeTypes ) ; foreach ( $ mimeTypes as $ type ) { $ this -> decoders [ $ type ] = $ decoder ; } }
Add a file decoder to the FileLoader
@param DecoderInterface $decoder
Add a file decoder to the FileLoader