You are here

public function SitemapParserFactory::get in Warmer 8

Same name and namespace in other branches
  1. 2.x modules/warmer_cdn/src/SitemapParserFactory.php \Drupal\warmer_cdn\SitemapParserFactory::get()

File

modules/warmer_cdn/src/SitemapParserFactory.php, line 15

Class

SitemapParserFactory
The Sitemap Parser factory.

Namespace

Drupal\warmer_cdn

Code

public function get(string $user_agent = SitemapParser::DEFAULT_USER_AGENT, array $config = []) : SitemapParser {
  return new SitemapParser($user_agent, $config);
}