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