Hibernate and return wakeup url

@return string
332076
public function hibernate(): string
    {
        $url = sprintf('sv/wake/%s', uuid());

        cache()->forever($url, serialize($this));

        return $url;
    }
904407
public function getQueryString()
    {
        $requestUri = $this->getRequestUri();

        if (false !== $qPos = mb_strpos($requestUri, '?')) {
            // has query string
            return mb_substr($requestUri, $qPos + 1);
        }

        return '';
    }
143637
public function getQuery(): string
    {
        if (!isset($this->segments['query'])) {
            throw new UrlException('Unable to get query for ' . $this->url);
        }

        return $this->segments['query'];
    }
855669
public function getBegin() : ?string 
    {
        if ( ! $this->hasBegin()) {
            $this->setBegin($this->getDefaultBegin());
        }
        return $this->begin;
    }
873965
public function getSessionChallengeToken()
    {
        if (\OxidEsales\Eshop\Core\Registry::getSession()->isSessionStarted()) {
            $sessionChallengeToken = $this->getSession()->getSessionChallengeToken();
        } else {
            $sessionChallengeToken = "";
        }

        return $sessionChallengeToken;
    }
857537
public function getQueryUrl()
    {

        $uri = $this->getBaseUrl();
        $uri .= Zend_Gdata_Gapps::APPS_NICKNAME_PATH;
        if ($this->_nickname !== null) {
            $uri .= '/' . $this->_nickname;
        }
        $uri .= $this->getQueryString();
        return $uri;
    }
1236852
public function getHref()
        {
            if ($this->_hrefCache) {
                return $this->_hrefCache;
            }

            if (null === self::$_urlHelper) {
                self::$_urlHelper = \Zend_Controller_Action_HelperBroker::getStaticHelper('Url');
            }

            $params = $this->getParams();

            if ($param = $this->getModule()) {
                $params['module'] = $param;
            }

            if ($param = $this->getController()) {
                $params['controller'] = $param;
            }

            if ($param = $this->getAction()) {
                $params['action'] = $param;
            }

            $url = self::$_urlHelper->url(
                $params,
                $this->getRoute(),
                $this->getResetParams(),
                $this->getEncodeUrl()
            );

            // Use scheme?
            $scheme = $this->getScheme();
            if (null !== $scheme) {
                if (null === self::$_schemeHelper) {
                    self::$_schemeHelper = new \Zend_View_Helper_ServerUrl();
                }

                $url = self::$_schemeHelper->setScheme($scheme)->serverUrl($url);
            }

            // Add the fragment identifier if it is set
            $fragment = $this->getFragment();
            if (null !== $fragment) {
                $url .= '#' . $fragment;
            }

            return $this->_hrefCache = $url;
        }
189138
public function getSLOurl()
    {
        $url = null;
        $idpData = $this->_settings->getIdPData();
        if (isset($idpData['singleLogoutService']) && isset($idpData['singleLogoutService']['url'])) {
            $url = $idpData['singleLogoutService']['url'];
        }
        return $url;
    }
1173717
public function getResetLink()
    {
        return app('html')->link(handles('antares::api/user/reset', ['provider' => $this->name]), trans('Reset public key'), [
                    'class'            => "triggerable confirm",
                    'data-title'       => trans("Are you sure?"),
                    'data-description' => trans('Do you really want to reset api public key?'),
                ])->get();
    }
302049
public function wakeupAction($id)
    {
        $cm = new CronManager();
        $crons = $cm->get();
        $this->addFlashFromCronManager($cm);
        $crons[$id]->setSuspended(false);
        $cm->write();
        $this->addFlashFromCronManager($cm);

        return $this->redirect($this->generateUrl('BCCCronManagerBundle_index'));
    }
1137363
public function currentUrl()
    {
        $context = $this->contextObject();

        if ($context && isset($context['url'])) {
            return $this->createAbsoluteUrl($context['url']);
        }

        return null;
    }
1273031
public static function sessionStart()
    {
        if (PHP_SAPI != 'cli') {
            return session_start();
        }

        self::tryGcSessions();

        if (HttpCache::$instance->sessionStarted) {
            echo "already sessionStarted\n";
            return true;
        }
        HttpCache::$instance->sessionStarted = true;
        // Generate a SID.
        if (!isset($_COOKIE[HttpCache::$sessionName]) || !is_file(HttpCache::$sessionPath . '/ses' . $_COOKIE[HttpCache::$sessionName])) {
            $file_name = tempnam(HttpCache::$sessionPath, 'ses');
            if (!$file_name) {
                return false;
            }
            HttpCache::$instance->sessionFile = $file_name;
            $session_id                       = substr(basename($file_name), strlen('ses'));
            return self::setcookie(
                HttpCache::$sessionName
                , $session_id
                , ini_get('session.cookie_lifetime')
                , ini_get('session.cookie_path')
                , ini_get('session.cookie_domain')
                , ini_get('session.cookie_secure')
                , ini_get('session.cookie_httponly')
            );
        }
        if (!HttpCache::$instance->sessionFile) {
            HttpCache::$instance->sessionFile = HttpCache::$sessionPath . '/ses' . $_COOKIE[HttpCache::$sessionName];
        }
        // Read session from session file.
        if (HttpCache::$instance->sessionFile) {
            $raw = file_get_contents(HttpCache::$instance->sessionFile);
            if ($raw) {
                $_SESSION = unserialize($raw);
            }
        }
        return true;
    }
292824
public function getSLOResponseUrl()
    {
        $idpData = $this->_settings->getIdPData();
        if (isset($idpData['singleLogoutService']) && isset($idpData['singleLogoutService']['responseUrl'])) {
            return $idpData['singleLogoutService']['responseUrl'];
        }
        return $this->getSLOurl();
    }
326160
public function search()
    {
        if (request()->get('query') == "") {
            return $this->reset();
        }
        
        session()->put($this->getSearchableKey(), request()->get('query'));

        if (request()->redirectUri) {
            return redirect()->to(request()->redirectUri);
        }

        return redirect()->to($this->previousUrl());
    }
1070112
public function startSession()
    {
        return (string) $this->sendTransaction([
          'email' => $this->email,
          'token' => $this->token,
        ], $this->url['session'])->id;
    }
380672
public function startOrResume() : bool
    {
        if (!$this->session->isStarted()) {
            return $this->session->start();
        }

        return $this->session->resume();
    }
1116257
public static function getSession()
    {
        if (CNabuHTTPSession::$nb_session === null) {
            CNabuHTTPSession::$nb_session = new CNabuHTTPSession();
            CNabuHTTPSession::$nb_session->init();
        }

        return CNabuHTTPSession::$nb_session;
    }