layout = "auth"; $this->uri_path = "auth/"; $this->view_path = "auth" . DIRECTORY_SEPARATOR; $this->title = "사용자인증"; $this->individualStylesheets = []; $this->individualScripts = []; } abstract protected function getSNSButton(): string; abstract protected function create_process(array $formDatas): UserEntity; final public function getHelper(): mixed { if (!$this->_helper) { $this->_helper = new AuthHelper($this->request); } return $this->_helper; } //로그인화면 public function create_form_process(): void { $this->sns_buttoh = $this->getSNSButton(); } //로그아웃 final public function logout(): RedirectResponse { try { $this->getService()->logout(); // 홈페이지로 리다이렉트 return redirect()->route('/')->with('error', MESSAGES['LOGOUT']); } catch (\Exception $e) { log_message("error", $e->getMessage()); return redirect()->back()->with('error', "로그아웃 중 오류가 발생했습니다."); } } }