clientService = $clientService; } /** * Displays the list of all clients. * * @param array $params Request parameters */ #[RequiresPermission(ClientsPermissions::VIEW, global: true)] public function get(array $params): Response { if (session('userdata.role') == 'admin') { $this->tpl->assign('admin', true); } $this->tpl->assign('allClients', $this->clientService->getAll()); return $this->tpl->display('clients.showAll'); } }