userRepo = $userRepo; $this->datatableService = $datatableService; } protected function getRepo() { return $this->userRepo; } public function getDatatable($accountId) { $datatable = new UserDatatable(false); $query = $this->userRepo->find($accountId); return $this->datatableService->createDatatable($datatable, $query); } }