load(Yii::$app->getRequest()->getBodyParams(), '')) { /** @var User $user */ if ($user = $model->signup()) { return [ 'id' => $user->id, ]; } } return null; } }