class Indexer
{
static $supportedTypes = array(
- 'application/xhtml+xml',
- 'text/html',
+ 'application/xhtml+xml' => true,
+ 'text/html' => true,
);
public function run(Retrieved $retrieved)
$mimetype = explode(';', $res->getHeader('content-type'))[0];
if (!in_array($mimetype, static::$supportedTypes)) {
- echo "MIME type not supported for indexing: $mimetype\n";
+ Log::info("MIME type not supported for indexing: $mimetype");
return false;
}