WIP
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
ad94eef630
commit
b20a78e5dd
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace IQBall\Api\Controller;
|
||||
|
||||
use IQBall\Core\Model\AuthModel;
|
||||
use IQBall\Core\Data\Account;
|
||||
|
||||
class APIUserController {
|
||||
private AuthModel $model;
|
||||
|
||||
public function __construct(AuthModel $model) {
|
||||
$this->model = $model;
|
||||
}
|
||||
|
||||
public function changeUsername(Account $acc, string $newUsername,) {
|
||||
$this->model->changeUsername($acc->getUser()->getId(), $newUsername);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in new issue