Пример #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->module->registerFunction('curlExec', [$this, 'doRequest']);
     $this->module->registerFunction('curlBegin', [$this, 'trackRequest']);
     $this->module->registerFunction('curlEnd', [$this, 'finalizeRequest']);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->module->registerFunction('data', [$this, 'trackData']);
 }