Changeset View
Changeset View
Standalone View
Standalone View
support/startup/PhabricatorStartup.php
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | public static function loadCoreLibraries() { | ||||
if (!empty($_SERVER['PHUTIL_LIBRARY_ROOT'])) { | if (!empty($_SERVER['PHUTIL_LIBRARY_ROOT'])) { | ||||
$root = $_SERVER['PHUTIL_LIBRARY_ROOT']; | $root = $_SERVER['PHUTIL_LIBRARY_ROOT']; | ||||
} | } | ||||
ini_set( | ini_set( | ||||
'include_path', | 'include_path', | ||||
$libraries_root.PATH_SEPARATOR.ini_get('include_path')); | $libraries_root.PATH_SEPARATOR.ini_get('include_path')); | ||||
@include_once $root.'libphutil/src/__phutil_library_init__.php'; | $ok = @include_once $root.'arcanist/src/init/init-library.php'; | ||||
if (!@constant('__LIBPHUTIL__')) { | if (!$ok) { | ||||
self::didFatal( | self::didFatal( | ||||
"Unable to load libphutil. Put libphutil/ next to phabricator/, or ". | 'Unable to load the "Arcanist" library. Put "arcanist/" next to '. | ||||
"update your PHP 'include_path' to include the parent directory of ". | '"phabricator/" on disk.'); | ||||
"libphutil/."); | |||||
} | } | ||||
phutil_load_library('arcanist/src'); | |||||
// Load Phabricator itself using the absolute path, so we never end up doing | // Load Phabricator itself using the absolute path, so we never end up doing | ||||
// anything surprising (loading index.php and libraries from different | // anything surprising (loading index.php and libraries from different | ||||
// directories). | // directories). | ||||
phutil_load_library($phabricator_root.'/src'); | phutil_load_library($phabricator_root.'/src'); | ||||
} | } | ||||
/* -( Output Capture )----------------------------------------------------- */ | /* -( Output Capture )----------------------------------------------------- */ | ||||
▲ Show 20 Lines • Show All 603 Lines • Show Last 20 Lines |