getResponse()->addData(['method' => 'ajaxStart']); } public function test() { $this->getResponse()->addData(['method' => 'test', 'version' => app()::getInstance('bx.discount')->module()->getVersion()]); return $this->getResponse(); } }