lithium\storage\Session::adapter PHP Method

adapter() public static method

Returns the adapter object instance of the named configuration.
public static adapter ( string $name = null ) : object
$name string Named configuration. If not set, the last configured adapter object instance will be returned.
return object Adapter instance.
    public static function adapter($name = null)
    {
        if (!$name) {
            if (!($names = array_keys(static::$_configurations))) {
                return;
            }
            $name = end($names);
        }
        return parent::adapter($name);
    }