Sonata\Exporter\Writer\SitemapWriter::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( string $folder, mixed $groupName = false, array $headers = [], boolean $autoIndex = true )
$folder string The folder to store the sitemap.xml file
$groupName mixed Name of sub-sitemap (optional)
$headers array Indicate the need for namespace in the header sitemap
$autoIndex boolean If you want to generate index of sitemap (optional)
    public function __construct($folder, $groupName = false, array $headers = array(), $autoIndex = true)
    {
        $this->folder = $folder;
        $this->groupName = is_string($groupName) ? $groupName : '';
        $this->headers = $headers;
        $this->autoIndex = $autoIndex;
        $this->pattern = 'sitemap_' . ($this->groupName ? $this->groupName . '_' : '') . '%05d.xml';
    }