Refactored models.

This commit is contained in:
Dmitry Khomutov 2018-03-10 01:00:53 +07:00
commit fb11ba4652
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
34 changed files with 2006 additions and 2335 deletions

View file

@ -182,7 +182,7 @@ class UserController extends Controller
$password = $this->getParam('password', null);
$isAdmin = (int)$this->getParam('is_admin', 0);
$this->userService->createUser($name, $email, 'internal', json_encode(['type' => 'internal']), $password, $isAdmin);
$this->userService->createUser($name, $email, 'internal', ['type' => 'internal'], $password, $isAdmin);
$response = new RedirectResponse();
$response->setHeader('Location', APP_URL . 'user');