public function getParserForContentType($contentType)
    {
        if(0 !== stripos($contentType, 'multipart/')) {
            return null;
        }

        list($mime, $boundary) = $this->parseContentType($contentType);

        $parser = new MultipartParser();
        $parser->setBoundary($boundary);

        return $parser;
    }
public function getParserForContentType($contentType)
    {
        if(0 !== stripos($contentType, 'multipart/')) {
            return null;
        }

        list($mime, $boundary) = $this->parseContentType($contentType);

        $parser = new MultipartParser();
        $parser->setBoundary($boundary);

        return $parser;
    }
public function getParserForContentType ( $ contentType ) { if ( 0 !== stripos ( $ contentType , 'multipart/' ) ) { return null ; } list ( $ mime , $ boundary ) = $ this -> parseContentType ( $ contentType ) ; $ parser = new MultipartParser ( ) ; $ parser -> setBoundary ( $ boundary ) ; return $ parser ; }
Give me your Content-Type, and i give you a parser.

@param $contentType
@return MultipartParser|null
Give me your Content - Type and i give you a parser .