Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/controller/PhabricatorConduitController.php
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | abstract class PhabricatorConduitController extends PhabricatorController { | ||||
} | } | ||||
private function buildPHPExample( | private function buildPHPExample( | ||||
ConduitAPIMethod $method, | ConduitAPIMethod $method, | ||||
$params) { | $params) { | ||||
$parts = array(); | $parts = array(); | ||||
$libphutil_path = 'path/to/libphutil/src/__phutil_library_init__.php'; | $libphutil_path = 'path/to/arcanist/support/init/init-script.php'; | ||||
$parts[] = '<?php'; | $parts[] = '<?php'; | ||||
$parts[] = "\n\n"; | $parts[] = "\n\n"; | ||||
$parts[] = 'require_once '; | $parts[] = 'require_once '; | ||||
$parts[] = phutil_var_export($libphutil_path); | $parts[] = phutil_var_export($libphutil_path); | ||||
$parts[] = ";\n\n"; | $parts[] = ";\n\n"; | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |