Changeset View
Changeset View
Standalone View
Standalone View
src/daemon/PhutilDaemonHandle.php
Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Lines | $this->dispatchEvent( | ||||
self::EVENT_DID_LOG, | self::EVENT_DID_LOG, | ||||
array( | array( | ||||
'type' => $type, | 'type' => $type, | ||||
'message' => $message, | 'message' => $message, | ||||
'context' => $context, | 'context' => $context, | ||||
)); | )); | ||||
} | } | ||||
public function toDictionary() { | |||||
return array( | |||||
'pid' => $this->getPID(), | |||||
'id' => $this->getDaemonID(), | |||||
'config' => $this->properties, | |||||
); | |||||
} | |||||
public function didExit() { | public function didExit() { | ||||
if ($this->shouldSendExitEvent) { | if ($this->shouldSendExitEvent) { | ||||
$this->dispatchEvent(self::EVENT_WILL_EXIT); | $this->dispatchEvent(self::EVENT_WILL_EXIT); | ||||
$this->shouldSendExitEvent = false; | $this->shouldSendExitEvent = false; | ||||
} | } | ||||
return $this; | return $this; | ||||
} | } | ||||
} | } |