public function __construct() { parent::__construct(); $this->on('requestCreated', array($this, 'requestCreatedCallback')); $this->on('responseReceived', array($this, 'responseReceivedCallback')); }