src/sessions/SessionContainerFactory.php
public function createSessionContainer()
    {
        // Check and start a default session if a custom session container is not supplied
        if(!isset($this->config['container'])) {
            session_start();
            return;
        }
        // Create an instance of the session container. Session containers are responsible for starting the session.
        $sessionContainerType = $this->config['container'];
        $className = '\ntentan\sessions\containers\\' . Text::ucamelize($sessionContainerType) . 'SessionContainer';
        $sessionContainer = new $className($this->config);
        return $sessionContainer;
    }
public function createSessionContainer()
    {
        // Check and start a default session if a custom session container is not supplied
        if(!isset($this->config['container'])) {
            session_start();
            return;
        }
        // Create an instance of the session container. Session containers are responsible for starting the session.
        $sessionContainerType = $this->config['container'];
        $className = '\ntentan\sessions\containers\\' . Text::ucamelize($sessionContainerType) . 'SessionContainer';
        $sessionContainer = new $className($this->config);
        return $sessionContainer;
    }
public function createSessionContainer ( ) { // Check and start a default session if a custom session container is not supplied if ( ! isset ( $ this -> config [ 'container' ] ) ) { session_start ( ) ; return ; } // Create an instance of the session container. Session containers are responsible for starting the session. $ sessionContainerType = $ this -> config [ 'container' ] ; $ className = '\ntentan\sessions\containers\\' . Text :: ucamelize ( $ sessionContainerType ) . 'SessionContainer' ; $ sessionContainer = new $ className ( $ this -> config ) ; return $ sessionContainer ; }
Create and return an instance of the custom session container if required.
Create and return an instance of the custom session container if required .