src/Keboola/OAuth/OAuthController.php
protected function initSessionBag($reset = false)
    {
        if ($reset || !$this->sessionBag) {
            $name = str_replace("-", "", $this->appName);
            /** @var Session $session */
            $session = $this->container->get('session');
            $bag = new AttributeBag('_' . str_replace("-", "_", $this->appName));
            $bag->setName($name);
            $session->registerBag($bag);

            $this->sessionBag = $session->getBag($name);
        }

        return $this->sessionBag;
    }
protected function initSessionBag($reset = false)
    {
        if ($reset || !$this->sessionBag) {
            $name = str_replace("-", "", $this->appName);
            /** @var Session $session */
            $session = $this->container->get('session');
            $bag = new AttributeBag('_' . str_replace("-", "_", $this->appName));
            $bag->setName($name);
            $session->registerBag($bag);

            $this->sessionBag = $session->getBag($name);
        }

        return $this->sessionBag;
    }
protected function initSessionBag ( $ reset = false ) { if ( $ reset || ! $ this -> sessionBag ) { $ name = str_replace ( "-" , "" , $ this -> appName ) ; /** @var Session $session */ $ session = $ this -> container -> get ( 'session' ) ; $ bag = new AttributeBag ( '_' . str_replace ( "-" , "_" , $ this -> appName ) ) ; $ bag -> setName ( $ name ) ; $ session -> registerBag ( $ bag ) ; $ this -> sessionBag = $ session -> getBag ( $ name ) ; } return $ this -> sessionBag ; }
Init OAuth session bag

@param bool $reset
@return AttributeBag
Init OAuth session bag