re #22 fix parameter order bug
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user