public function ParserRegistry::__construct

Constructor used to apply the most performant parsers based on loaded extensions

File

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

Class

ParserRegistry
Registry of parsers used by the application

Namespace

Guzzle\Parser

Code

public function __construct() {

  // Use the PECL URI template parser if available
  if (extension_loaded('uri_template')) {
    $this->mapping['uri_template'] = 'Guzzle\\Parser\\UriTemplate\\PeclUriTemplate';
  }
}