/**
  * Called when worker is going to update configuration.
  * @return void
  */
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
     $app = $this;
     FS::readfile($this->config->file->value, function ($file, $data) use($app) {
         $app->policyData = $data;
         $app->enable();
     });
 }
 /**
  * Called when worker is going to update configuration.
  * @return void
  */
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
     if (($order = ini_get('request_order')) || ($order = ini_get('variables_order'))) {
         $this->variablesOrder = $order;
     } else {
         $this->variablesOrder = null;
     }
 }
Exemple #3
0
 /**
  * Called when the worker is ready to go.
  * @return void
  */
 public function onReady()
 {
     parent::onReady();
     $this->WS = WebSocketServer::getInstance();
 }