Ejemplo n.º 1
0
 /**
  * Initialize session object.
  * Subclass will throw exception if session can not be created or if
  * preconditions like a valid encryption key are not set.
  *
  * @return void
  */
 protected function initializeSession()
 {
     /** @var \TYPO3\CMS\Install\Service\SessionService $session */
     $this->session = $this->objectManager->get(\TYPO3\CMS\Install\Service\SessionService::class);
     if (!$this->session->hasSession()) {
         $this->session->startSession();
     }
 }
Ejemplo n.º 2
0
 /**
  * Initialize session object.
  * Subclass will throw exception if session can not be created or if
  * preconditions like a valid encryption key are not set.
  *
  * @return void
  */
 protected function initializeSession()
 {
     /** @var \TYPO3\CMS\Install\Service\SessionService $session */
     $this->session = GeneralUtility::makeInstance(\TYPO3\CMS\Install\Service\SessionService::class);
     if (!$this->session->hasSession()) {
         $this->session->startSession();
     }
 }