当前位置: 首页>>代码示例>>PHP>>正文


PHP Container::getManager方法代码示例

本文整理汇总了PHP中Zend\Session\Container::getManager方法的典型用法代码示例。如果您正苦于以下问题:PHP Container::getManager方法的具体用法?PHP Container::getManager怎么用?PHP Container::getManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\Session\Container的用法示例。


在下文中一共展示了Container::getManager方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: logoutAction

 public function logoutAction()
 {
     $session = new Container('User');
     $session->getManager()->destroy();
     $this->getAuthService()->clearIdentity();
     return $this->redirect()->toRoute('login');
 }
开发者ID:sachintyagi,项目名称:lokhit,代码行数:7,代码来源:UsersController.php

示例2: tearDown

 public function tearDown()
 {
     $this->sessionProgress->getManager()->getStorage()->clear('progress_tracker');
     $forms = new Container('forms');
     $forms->getManager()->getStorage()->clear('forms');
     parent::tearDown();
 }
开发者ID:zfury,项目名称:cmf,代码行数:7,代码来源:IndexControllerTest.php

示例3: reset

 public function reset()
 {
     $clearance = new Container('forrest');
     $clearance->getManager()->getStorage()->clear('forrest');
     $this->forrest = new Container('forrest');
     $this->forrest->trace = new \ArrayObject();
 }
开发者ID:odegroot,项目名称:ers,代码行数:7,代码来源:BreadcrumbFactory.php

示例4: logoutAction

 public function logoutAction()
 {
     $this->getAuthService()->getStorage()->clear();
     $user_session = new Container('webshop');
     $user_session->getManager()->destroy();
     return $this->redirect()->toRoute('webshop/product');
 }
开发者ID:ravikantmishra,项目名称:zf2_webshop,代码行数:7,代码来源:UserController.php

示例5: logoutAction

 public function logoutAction()
 {
     $session = new Container('User');
     $session->getManager()->destroy();
     $this->getAuthService()->clearIdentity();
     return $this->redirect()->toUrl('/article_to_read/public');
 }
开发者ID:valoupeca,项目名称:article_to_read,代码行数:7,代码来源:AuthController.php

示例6: loginAction

 public function loginAction()
 {
     $sessao = new Container();
     $id = $this->params()->fromRoute("id") ? $this->params()->fromRoute("id") : null;
     $request = $this->getRequest();
     if (empty($sessao->usuario)) {
         if ($request->isPost()) {
             $senha = $request->getPost('senha');
             $usuario = $request->getPost('usuario');
             if (!empty($senha) && !empty($usuario)) {
                 $user = new Login();
                 $user = $this->getLoginTable()->getLogin($usuario, $senha);
                 if (!$user) {
                     $this->redirect()->toRoute('errologin');
                 } else {
                     $sessao->usuario = $usuario;
                     $sessao->registro = time();
                     $this->redirect()->toRoute('dashboard');
                 }
             }
         }
     } else {
         if (!isset($id)) {
             $this->redirect()->toRoute('dashboard');
         } else {
             $sessao->getManager()->getStorage()->clear();
             $this->redirect()->toRoute('login');
         }
     }
 }
开发者ID:joonsantiago,项目名称:nortes,代码行数:30,代码来源:IndexController.php

示例7: indexAction

 public function indexAction()
 {
     $userSession = new Container('user');
     /*$userSession->user_id = false;
     		$userSession->user_group = false;*/
     $userSession->getManager()->destroy();
     return $this->redirect()->toRoute('home');
 }
开发者ID:papertask,项目名称:papertask,代码行数:8,代码来源:LogoutController.php

示例8: logoutAction

 public function logoutAction()
 {
     $authService = $this->getServiceLocator()->get('AuthService');
     $session = new Container('User');
     $session->getManager()->destroy();
     $authService->clearIdentity();
     return $this->redirect()->toUrl('/login');
 }
开发者ID:z133808,项目名称:ZF2-Auth-ACL,代码行数:8,代码来源:IndexController.php

示例9: logoutAction

 function logoutAction()
 {
     $adminState = new Container('Admin');
     if (!is_null($adminState->Email)) {
         $adminState->getManager()->getStorage()->clear('Admin');
     }
     $this->redirect()->toRoute('admin');
 }
开发者ID:BBFramework,项目名称:zend_start,代码行数:8,代码来源:UserController.php

示例10: resetAction

 /**
  * Start over with the upgrade process in case of an error.
  *
  * @return mixed
  */
 public function resetAction()
 {
     foreach (array_keys($this->cookie->getAllValues()) as $k) {
         unset($this->cookie->{$k});
     }
     $storage = $this->session->getManager()->getStorage();
     $storage[$this->session->getName()] = new ArrayObject([], ArrayObject::ARRAY_AS_PROPS);
     return $this->forwardTo('Upgrade', 'Home');
 }
开发者ID:steenlibrary,项目名称:vufind,代码行数:14,代码来源:UpgradeController.php

示例11: logoutAction

 public function logoutAction()
 {
     // Clear the identity and we also regenerate a new session id in order to make sure that new logins always
     // have a unique session id.
     $this->authenticationService->clearIdentity();
     $this->authSession->getManager()->expireSessionCookie();
     $this->resetTwoFactorAuthentication();
     return $this->redirect()->toRoute('login');
 }
开发者ID:zource,项目名称:zource,代码行数:9,代码来源:Authenticate.php

示例12: reset

 public function reset()
 {
     $clearance = new Container('forrest');
     $clearance->getManager()->getStorage()->clear('forrest');
     $this->forrest = new Container('forrest');
     $this->forrest->active = 'fallback';
     $id = $this->getId();
     $this->forrest->{$id} = new \ArrayObject();
 }
开发者ID:odegroot,项目名称:ers,代码行数:9,代码来源:BreadcrumbService.php

示例13: logoutAction

 public function logoutAction()
 {
     $this->login->logout();
     $sesion = new Container('reminderSesion');
     $sesion->getManager()->getStorage()->clear('reminderSesion');
     //$this->logger->info("Usuario desconectado: " . $this->login->getIdentity());
     //$this->flashMessengerPlus()->addSuccess('Logout Correcto!', 'Logout Correcto', false, null);
     return $this->redirect()->toRoute('login', array('controller' => 'login', 'action' => 'index'));
 }
开发者ID:Crisstthian,项目名称:Reminder,代码行数:9,代码来源:LoginController.php

示例14: deleteSession

 public function deleteSession($username, $session, $ip)
 {
     if ($session == NULL) {
         $this->tableGateway->delete(array('username' => $username));
     } else {
         $this->tableGateway->delete(array('username' => $username, 'session' => $session, 'ip' => $ip));
     }
     $user_session = new Container('user');
     $user_session->getManager()->getStorage()->clear('user');
 }
开发者ID:mmatusik,项目名称:panel-rabatem,代码行数:10,代码来源:SessionTable.php

示例15: checkOutAction

 public function checkOutAction()
 {
     if ($this->request->isPost()) {
         $this->_options['tableName'] = "shopOrderTable";
         $this->getTable()->saveItem($this->_mainParam['data']);
         $ssOrder = new Container(BOOKONLINE_KEY . "_order");
         $ssOrder->getManager()->getStorage()->clear(BOOKONLINE_KEY . "_order");
     }
     return $this->redirect()->toRoute("homeShop");
 }
开发者ID:trongle,项目名称:book_zend2,代码行数:10,代码来源:UserController.php


注:本文中的Zend\Session\Container::getManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。