public static function ParserRegistry::set

Register a custom parser by name with the register

@codeCoverageIgnore

Parameters

string $name Name or handle of the parser to register:

mixed $parser Instantiated parser to register:

Deprecated

Will be removed in 3.1.0

File

drupal/core/vendor/guzzle/parser/Guzzle/Parser/ParserRegistry.php, line 109

Class

ParserRegistry
Registry of parsers used by the application

Namespace

Guzzle\Parser

Code

public static function set($name, $parser) {
  self::getInstance()
    ->registerParser($name, $parser);
}