diff --git a/app/Controllers/CommonController.php b/app/Controllers/CommonController.php index 94875e9..4d3e1a6 100644 --- a/app/Controllers/CommonController.php +++ b/app/Controllers/CommonController.php @@ -78,7 +78,7 @@ abstract class CommonController extends BaseController $result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]); break; default: - $result = redirect()->to($this->myauth->popPreviousUrl())->with('error', $message); + $result = redirect()->to($this->_myAuth->popPreviousUrl())->with('error', $message); break; } return $result; @@ -199,11 +199,11 @@ abstract class CommonController extends BaseController helper(['form']); $this->entity = $this->create_process(); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -242,11 +242,11 @@ abstract class CommonController extends BaseController helper(['form']); $this->entity = $this->modify_process($uid); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -268,11 +268,11 @@ abstract class CommonController extends BaseController $this->fields = [$field]; $this->entity = $this->toggle_process($uid); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -320,11 +320,11 @@ abstract class CommonController extends BaseController } $this->entities = $this->batchjob_process($entities); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -347,11 +347,11 @@ abstract class CommonController extends BaseController $entity = $this->getService()->getEntity($uid); $this->entity = $this->delete_process($entity); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -390,11 +390,11 @@ abstract class CommonController extends BaseController } $this->batchjob_delete_process($entities); $this->getService()->getModel()->transCommit(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]); return $this->getResultPageByActon($this->action); } catch (\Exception $e) { $this->getService()->getModel()->transRollback(); - $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]); + $this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]); return redirect()->back()->withInput()->with('error', $e->getMessage()); } } @@ -496,7 +496,7 @@ abstract class CommonController extends BaseController $this->init(__FUNCTION__); $this->entities = $this->index_process(); // 현재 URL을 스택에 저장 - $this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : "")); + $this->_myAuth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : "")); helper(['form']); return $this->getResultPageByActon($this->action); } catch (\Exception $e) {