@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Enable phd to load extra libraries

Summary: add --load-phutil-library for libraries other than phabricator
and libphutil.

Test Plan: launch a daemon in facebook such as
PhabricatorDifferentialCommentDaemon.

Reviewers: epriestley, tuomaspelkonen

CC:

Differential Revision: 146

+16
+15
src/infrastructure/daemon/control/PhabricatorDaemonControl.php
··· 181 181 $argv[$key] = escapeshellarg($arg); 182 182 } 183 183 184 + $bootloader = PhutilBootloader::getInstance(); 185 + $all_libraries = $bootloader->getAllLibraries(); 186 + 187 + $non_default_libraries = array_diff( 188 + $all_libraries, 189 + array('phutil', 'phabricator')); 190 + 191 + $extra_libraries = array(); 192 + foreach ($non_default_libraries as $library) { 193 + $extra_libraries[] = csprintf( 194 + '--load-phutil-library=%s', 195 + phutil_get_library_root($library)); 196 + } 197 + 184 198 $future = new ExecFuture( 185 199 "./launch_daemon.php ". 186 200 "%s ". 187 201 "--load-phutil-library=%s ". 202 + implode(' ', $extra_libraries)." ". 188 203 "--conduit-uri=%s ". 189 204 "--daemonize ". 190 205 "--phd=%s ".
+1
src/infrastructure/daemon/control/__init__.php
··· 15 15 phutil_require_module('phutil', 'moduleutils'); 16 16 phutil_require_module('phutil', 'symbols'); 17 17 phutil_require_module('phutil', 'utils'); 18 + phutil_require_module('phutil', 'xsprintf/csprintf'); 18 19 19 20 20 21 phutil_require_source('PhabricatorDaemonControl.php');