Parser 4.0+ ​
📝 Name: parser
· 🖥️ Option: --parser
FQCN of the parser to be used for parsing XML sitemaps.
TIP
You can also implement a custom parser that fits your needs.
Example ​
Make sure the parser can be autoloaded by PHP and provide the FQCN.
bash
./cache-warmup.phar --parser "Vendor\\Xml\\MyCustomParser"
json
{
"parser": "Vendor\\Xml\\MyCustomParser"
}
php
use EliasHaeussler\CacheWarmup;
return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
$config->setParser(\Vendor\Xml\MyCustomParser::class);
return $config;
};
yaml
parser: 'Vendor\\Xml\\MyCustomParser'
bash
CACHE_WARMUP_PARSER="Vendor\\Xml\\MyCustomParser"