Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/PhabricatorMarkupEngine.php
Show First 20 Lines • Show All 616 Lines • ▼ Show 20 Lines | foreach ($blocks as $block) { | ||||
$best = $block; | $best = $block; | ||||
} | } | ||||
} | } | ||||
return $best; | return $best; | ||||
} | } | ||||
private static function loadCustomInlineRules() { | private static function loadCustomInlineRules() { | ||||
return id(new PhutilSymbolLoader()) | return id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('PhabricatorRemarkupCustomInlineRule') | ->setAncestorClass('PhabricatorRemarkupCustomInlineRule') | ||||
->loadObjects(); | ->execute(); | ||||
} | } | ||||
private static function loadCustomBlockRules() { | private static function loadCustomBlockRules() { | ||||
return id(new PhutilSymbolLoader()) | return id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('PhabricatorRemarkupCustomBlockRule') | ->setAncestorClass('PhabricatorRemarkupCustomBlockRule') | ||||
->loadObjects(); | ->execute(); | ||||
} | } | ||||
} | } |