예제 #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']);
 }