[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 #!/usr/bin/env php 2 <?php 3 4 // NOTE: This is substantially the same as the libphutil/ "launch_daemon.php" 5 // script, except it loads the Phabricator environment and adds some Phabricator 6 // specific flags. 7 8 $root = dirname(dirname(dirname(__FILE__))); 9 require_once $root.'/scripts/__init_script__.php'; 10 11 $flags = array(); 12 13 $bootloader = PhutilBootloader::getInstance(); 14 foreach ($bootloader->getAllLibraries() as $library) { 15 if ($library == 'phutil') { 16 // No need to load libphutil, it's necessarily loaded implicitly by the 17 // daemon itself. 18 continue; 19 } 20 $flags[] = '--load-phutil-library='.phutil_get_library_root($library); 21 } 22 23 // Add more flags. 24 array_splice($argv, 2, 0, $flags); 25 26 $overseer = new PhutilDaemonOverseer($argv); 27 $overseer->run();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |