getResponse()->addData(['method' => 'ajaxStart']); } public function spiderAgentDelete() { $agentManager = new SpiderAgentManager(); $agentManager->delete(); } public function spiderAgentAdd() { $agentManager = new SpiderAgentManager(); $agentManager->add(); } public function test() { $this->getResponse()->addData(['method' => 'test', 'version' => discountApp()->module()->getVersion()]); return $this->getResponse(); } }