Page MenuHomec4science

PhabricatorApplicationTransactionRemarkupPreviewController.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 18:01

PhabricatorApplicationTransactionRemarkupPreviewController.php

<?php
final class PhabricatorApplicationTransactionRemarkupPreviewController
extends PhabricatorApplicationTransactionController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $this->getViewer();
$corpus = $request->getStr('corpus');
$remarkup = new PHUIRemarkupView($viewer, $corpus);
$content = array(
'content' => hsprintf('%s', $remarkup),
);
return id(new AphrontAjaxResponse())
->setContent($content);
}
}

Event Timeline