re #22 fix parameter order bug

This commit is contained in:
Antonio Ramirez
2017-07-19 00:34:14 +02:00
parent c627672486
commit 8db2df1a48
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ class AdminController extends Controller
return $this->redirect(['index']);
}
$this->make(SwitchIdentityService::class, [$this, 'userId' => $id])->run();
$this->make(SwitchIdentityService::class, [$this, 2 => $id])->run();
return $this->goHome();
}

View File

@ -31,7 +31,7 @@ class SwitchIdentityService implements ServiceInterface
protected $userId;
protected $userQuery;
public function __construct(AdminController $controller, $userId, UserQuery $userQuery)
public function __construct(AdminController $controller, UserQuery $userQuery, $userId = null)
{
/** @var Module $module */
$module = $controller->module;