src/Viserio/Component/Parser/Parser.php
public function addParser(ParserContract $parser, string $extension): void
    {
        self::$supportedParsers[$extension] = $parser;
    }
public function addParser(ParserContract $parser, string $extension): void
    {
        self::$supportedParsers[$extension] = $parser;
    }
Add a new parser.

@param \Viserio\Component\Contract\Parser\Parser $parser
@param string                                    $extension

@return void