handle(); return $this->jsonSuccess(['ticket' => $ticket]); } /** * @Post("/sms/code", name="api.verify.sms_code") */ public function smsCodeAction() { $service = new SmsCodeService(); $service->handle(); return $this->jsonSuccess(); } /** * @Post("/mail/code", name="api.verify.mail_code") */ public function mailCodeAction() { $service = new MailCodeService(); $service->handle(); return $this->jsonSuccess(); } }