1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/infrastructure/daemon/PhabricatorDaemon.php

23 lines
460 B
PHP
Raw Normal View History

<?php
abstract class PhabricatorDaemon extends PhutilDaemon {
protected function willRun() {
parent::willRun();
$phabricator = phutil_get_library_root('phabricator');
$root = dirname($phabricator);
require_once $root.'/scripts/__init_script__.php';
}
protected function willSleep($duration) {
LiskDAO::closeAllConnections();
return;
}
public function getViewer() {
return PhabricatorUser::getOmnipotentUser();
}
}