Page MenuHomec4science

PhabricatorIndexEngine.php
No OneTemporary

File Metadata

Created
Mon, Mar 31, 11:20

PhabricatorIndexEngine.php

<?php
final class PhabricatorIndexEngine extends Phobject {
public function indexDocumentByPHID($phid, $context) {
$indexers = id(new PhutilClassMapQuery())
->setAncestorClass('PhabricatorSearchDocumentIndexer')
->execute();
foreach ($indexers as $indexer) {
if ($indexer->shouldIndexDocumentByPHID($phid)) {
$indexer->indexDocumentByPHID($phid, $context);
break;
}
}
return $this;
}
}

Event Timeline