public function updateUserToken(User $user, UserTokenUpdateStruct $userTokenUpdateStruct)
    {
        $returnValue = $this->service->updateUserToken($user, $userTokenUpdateStruct);
        $this->signalDispatcher->emit(
            new UpdateUserTokenSignal(
                ['userId' => $user->id]
            )
        );

        return $returnValue;
    }
public function updateUserToken(User $user, UserTokenUpdateStruct $userTokenUpdateStruct)
    {
        $returnValue = $this->service->updateUserToken($user, $userTokenUpdateStruct);
        $this->signalDispatcher->emit(
            new UpdateUserTokenSignal(
                ['userId' => $user->id]
            )
        );

        return $returnValue;
    }
public function updateUserToken ( User $ user , UserTokenUpdateStruct $ userTokenUpdateStruct ) { $ returnValue = $ this -> service -> updateUserToken ( $ user , $ userTokenUpdateStruct ) ; $ this -> signalDispatcher -> emit ( new UpdateUserTokenSignal ( [ 'userId' => $ user -> id ] ) ) ; return $ returnValue ; }
Update the user account key information specified by the user account key struct.

@param \eZ\Publish\API\Repository\Values\User\User $user
@param \eZ\Publish\API\Repository\Values\User\UserTokenUpdateStruct $userTokenUpdateStruct

@return \eZ\Publish\API\Repository\Values\User\User
Update the user account key information specified by the user account key struct .