You are here

SitemapParserFactory.php in Warmer 8

Same filename and directory in other branches
  1. 2.x modules/warmer_cdn/src/SitemapParserFactory.php

Namespace

Drupal\warmer_cdn

File

modules/warmer_cdn/src/SitemapParserFactory.php
View source
<?php

namespace Drupal\warmer_cdn;

use vipnytt\SitemapParser;

/**
 * The Sitemap Parser factory.
 */
class SitemapParserFactory {

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

}

Classes

Namesort descending Description
SitemapParserFactory The Sitemap Parser factory.