setAncestorClass('PhabricatorSearchDocumentIndexer') ->setConcreteOnly(true) ->setType('class') ->selectAndLoadSymbols(); $indexers = array(); foreach ($doc_indexer_symbols as $symbol) { $indexers[] = newv($symbol['name'], array()); } foreach ($indexers as $indexer) { if ($indexer->shouldIndexDocumentByPHID($phid)) { $indexer->indexDocumentByPHID($phid); break; } } return $this; } }