Skip to content

Commit

Permalink
Merge branch 'master-dev' of github.com:KIClubinfo/upont into master-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fran757 committed Sep 5, 2019
2 parents c527119 + 785bf84 commit d782c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back/src/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public function postUsersAction(UserFactory $userFactory, Request $request)
*
* @Route("/import/users", methods={"POST"})
*/
public function importUsersAction(Request $request)
public function importUsersAction(UserFactory $userFactory, Request $request)
{
set_time_limit(3600);
if (!$this->get('security.authorization_checker')->isGranted('ROLE_ADMIN'))
Expand Down Expand Up @@ -548,7 +548,7 @@ public function importUsersAction(Request $request)
'origin' => $origin,
];

$user = $this->get('ki_user.factory.user')->createUser($login, [], $attributes);
$user = $userFactory->createUser($login, [], $attributes);
} else {
$user->setPromo($promo);
$user->setDepartment($department);
Expand Down

0 comments on commit d782c61

Please sign in to comment.