2011-03-07 07:29:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhabricatorDaemon extends PhutilDaemon {
|
|
|
|
|
|
|
|
protected function willRun() {
|
|
|
|
parent::willRun();
|
|
|
|
|
|
|
|
$phabricator = phutil_get_library_root('phabricator');
|
|
|
|
$root = dirname($phabricator);
|
2011-10-01 17:59:42 +02:00
|
|
|
require_once $root.'/scripts/__init_script__.php';
|
2011-03-07 07:29:22 +01:00
|
|
|
}
|
2013-04-10 23:52:29 +02:00
|
|
|
|
|
|
|
protected function willSleep($duration) {
|
|
|
|
LiskDAO::closeAllConnections();
|
|
|
|
return;
|
|
|
|
}
|
2013-09-26 21:36:24 +02:00
|
|
|
|
|
|
|
public function getViewer() {
|
|
|
|
return PhabricatorUser::getOmnipotentUser();
|
|
|
|
}
|
|
|
|
|
2011-03-07 07:29:22 +01:00
|
|
|
}
|