Esempio n. 1
0
 protected function onDestroy()
 {
     System::getService("DestructionHook")->load();
 }
Esempio n. 2
0
 public static function sendServiceIntent($serviceName, Intent $intent)
 {
     if (!System::serviceExists($serviceName)) {
         return null;
     }
     return System::getService($serviceName)->send($intent);
 }
Esempio n. 3
0
 function onLoad()
 {
     System::getService("DestructionHook")->put($this);
 }
Esempio n. 4
0
 function __construct()
 {
     if (version_compare(PHP_VERSION, "7.0.0", "<")) {
         System::getService("ErrorHandler")->putHandlerController($this);
     }
 }
 protected function onLoad()
 {
     $this->findPars();
     System::getService("AutoLoader")->putAutoLoader($this);
 }