concrete/src/Session/SessionFactory.php
private function getSessionHandler(array $config)
    {
        $handler = array_get($config, 'handler', 'default');

        // Build handler using a matching method "get{Type}Handler"
        $method = Str::camel("get_{$handler}_handler");
        if (method_exists($this, $method)) {
            return $this->{$method}($config);
        }

        /*
         * @todo Change this to return an exception if an unsupported handler is configured. This makes it easier to get
         * configuration dialed in properly
         */
        //throw new \RuntimeException(t('Unsupported session handler "%s"', $handler));

        // Return the default session handler by default
        return $this->getSessionHandler(['handler' => 'default'] + $config);
    }
private function getSessionHandler(array $config)
    {
        $handler = array_get($config, 'handler', 'default');

        // Build handler using a matching method "get{Type}Handler"
        $method = Str::camel("get_{$handler}_handler");
        if (method_exists($this, $method)) {
            return $this->{$method}($config);
        }

        /*
         * @todo Change this to return an exception if an unsupported handler is configured. This makes it easier to get
         * configuration dialed in properly
         */
        //throw new \RuntimeException(t('Unsupported session handler "%s"', $handler));

        // Return the default session handler by default
        return $this->getSessionHandler(['handler' => 'default'] + $config);
    }
private function getSessionHandler ( array $ config ) { $ handler = array_get ( $ config , 'handler' , 'default' ) ; // Build handler using a matching method "get{Type}Handler" $ method = Str :: camel ( "get_{$handler}_handler" ) ; if ( method_exists ( $ this , $ method ) ) { return $ this -> { $ method } ( $ config ) ; } /*
         * @todo Change this to return an exception if an unsupported handler is configured. This makes it easier to get
         * configuration dialed in properly
         */ //throw new \RuntimeException(t('Unsupported session handler "%s"', $handler)); // Return the default session handler by default return $ this -> getSessionHandler ( [ 'handler' => 'default' ] + $ config ) ; }
Get a new session handler.

@param array $config The config from our config repository

@return \SessionHandlerInterface

@throws \RuntimeException When a configured handler does not exist
Get a new session handler .