<?php

namespace App\Http\Controllers\Account;


use App\Classes\Modules\Accounts\ControllersLogic\ListUsersLogic;
use App\Classes\Modules\Accounts\Services\ListsUsers;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class ListUsersController
{
    /** @var ListsUsers */
    private $listsUsers;

    /**
     * ListUsersController constructor.
     * @param ListsUsers $listsUsers
     */
    public function __construct(ListsUsers $listsUsers)
    {
        $this->listsUsers = $listsUsers;
    }


    public function list(Request $request, ListUsersLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}