Changeset View
Changeset View
Standalone View
Standalone View
src/init/init-library.php
<?php | <?php | ||||
$src = dirname(__FILE__); | $src = __DIR__; | ||||
require_once $src.'/lib/core.php'; | require_once $src.'/lib/core.php'; | ||||
require_once $src.'/lib/PhutilBootloader.php'; | require_once $src.'/lib/PhutilBootloader.php'; | ||||
require_once $src.'/lib/PhutilBootloaderException.php'; | require_once $src.'/lib/PhutilBootloaderException.php'; | ||||
require_once $src.'/lib/PhutilLibraryConflictException.php'; | require_once $src.'/lib/PhutilLibraryConflictException.php'; | ||||
require_once $src.'/lib/PhutilMissingSymbolException.php'; | require_once $src.'/lib/PhutilMissingSymbolException.php'; | ||||
require_once $src.'/lib/moduleutils.php'; | require_once $src.'/lib/moduleutils.php'; | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | try { | ||||
if ($last == __FUNCTION__) { | if ($last == __FUNCTION__) { | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
spl_autoload_register('__phutil_autoload', $throw = true); | spl_autoload_register('__phutil_autoload', $throw = true); | ||||
PhutilBootloader::newLibrary('arcanist', dirname(dirname(__FILE__))); | PhutilBootloader::newLibrary('arcanist', dirname(__DIR__)); |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0