Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/PhabricatorMarkupEngine.php
Show All 36 Lines | |||||
* @task markup Markup Pipeline | * @task markup Markup Pipeline | ||||
* @task engine Engine Construction | * @task engine Engine Construction | ||||
*/ | */ | ||||
final class PhabricatorMarkupEngine extends Phobject { | final class PhabricatorMarkupEngine extends Phobject { | ||||
private $objects = array(); | private $objects = array(); | ||||
private $viewer; | private $viewer; | ||||
private $contextObject; | private $contextObject; | ||||
private $version = 20; | private $version = 21; | ||||
cspeckmim: Does this cause previous render caches to invalidate? | |||||
Done Inline ActionsYep. epriestley: Yep. | |||||
private $engineCaches = array(); | private $engineCaches = array(); | ||||
private $auxiliaryConfig = array(); | private $auxiliaryConfig = array(); | ||||
/* -( Markup Pipeline )---------------------------------------------------- */ | /* -( Markup Pipeline )---------------------------------------------------- */ | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | public static function newMarkupEngine(array $options) { | ||||
} | } | ||||
if (isset($options['uri.same-window'])) { | if (isset($options['uri.same-window'])) { | ||||
$engine->setConfig('uri.same-window', $options['uri.same-window']); | $engine->setConfig('uri.same-window', $options['uri.same-window']); | ||||
} | } | ||||
$rules = array(); | $rules = array(); | ||||
$rules[] = new PhutilRemarkupEscapeRemarkupRule(); | $rules[] = new PhutilRemarkupEscapeRemarkupRule(); | ||||
$rules[] = new PhutilRemarkupEvalRule(); | |||||
$rules[] = new PhutilRemarkupMonospaceRule(); | $rules[] = new PhutilRemarkupMonospaceRule(); | ||||
$rules[] = new PhutilRemarkupDocumentLinkRule(); | $rules[] = new PhutilRemarkupDocumentLinkRule(); | ||||
$rules[] = new PhabricatorNavigationRemarkupRule(); | $rules[] = new PhabricatorNavigationRemarkupRule(); | ||||
$rules[] = new PhabricatorKeyboardRemarkupRule(); | $rules[] = new PhabricatorKeyboardRemarkupRule(); | ||||
$rules[] = new PhabricatorConfigRemarkupRule(); | $rules[] = new PhabricatorConfigRemarkupRule(); | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |
Does this cause previous render caches to invalidate?