aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Master.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-08-13 09:46:01 +0200
committerMario Vavti <mario@mariovavti.com>2019-08-13 09:46:01 +0200
commite8f3b7f8530c69045dcabffecab2f158d0b35214 (patch)
treee02872bbb9a7226f30f78a1784fae113431eceaa /Zotlabs/Daemon/Master.php
parent892e9cd835612c8155bf3c15436137f94abbb667 (diff)
parente28341ca4beb1b746a5c17590f62c02cc8df49ba (diff)
downloadvolse-hubzilla-e8f3b7f8530c69045dcabffecab2f158d0b35214.tar.gz
volse-hubzilla-e8f3b7f8530c69045dcabffecab2f158d0b35214.tar.bz2
volse-hubzilla-e8f3b7f8530c69045dcabffecab2f158d0b35214.zip
Merge branch '4.4RC'4.4
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;
}