aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Master.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-07-28 20:00:14 -0700
committerzotlabs <mike@macgirvin.com>2019-07-28 20:00:14 -0700
commit70e4a2c4fa69135dea97d1b6323fe6f8e17961c7 (patch)
tree38e8f097ec0d9aecb12dcce0bfcf239af37cebbf /Zotlabs/Daemon/Master.php
parent696359daba11c51d8f733dfa173e48b5e1de69ef (diff)
parent5695350e98a8a2c802ff419c5b29b0f01f0180df (diff)
downloadvolse-hubzilla-70e4a2c4fa69135dea97d1b6323fe6f8e17961c7.tar.gz
volse-hubzilla-70e4a2c4fa69135dea97d1b6323fe6f8e17961c7.tar.bz2
volse-hubzilla-70e4a2c4fa69135dea97d1b6323fe6f8e17961c7.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Daemon/Master.php')
-rw-r--r--Zotlabs/Daemon/Master.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Master.php b/Zotlabs/Daemon/Master.php
index 857d47243..67a3acc0a 100644
--- a/Zotlabs/Daemon/Master.php
+++ b/Zotlabs/Daemon/Master.php
@@ -17,7 +17,22 @@ if(array_search( __file__ , get_included_files()) === 0) {
class Master {
static public function Summon($arr) {
- proc_run('php','Zotlabs/Daemon/Master.php',$arr);
+ $hookinfo = [
+ 'argv'=>$arr
+ ];
+
+ call_hooks ('daemon_master_summon',$hookinfo);
+
+ $arr = $hookinfo['argv'];
+ $argc = count($arr);
+
+ if ((!is_array($arr) || (count($arr) < 1))) {
+ logger("Summon handled by hook.",LOGGER_DEBUG);
+ return;
+ }
+
+ $phpbin = get_config('system','phpbin','php');
+ proc_run($phpbin,'Zotlabs/Daemon/Master.php',$arr);
}
static public function Release($argc,$argv) {
@@ -33,6 +48,7 @@ class Master {
$argc = count($argv);
if ((!is_array($argv) || (count($argv) < 1))) {
+ logger("Release handled by hook.",LOGGER_DEBUG);
return;
}