<?php
namespace core;

// Prevent direct access to the file
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}


// ******************************************************************************
// *
// *  Session class
// *
// ******************************************************************************
class Session {

    private ?array $config_data = null;

    public function __get(string $property) {
        return match ($property) {
            'config' => $this->config_data ??= include FC_PLUGIN_DIR . 'conf/config.php',
            'abbr'   => FC_ABBR,
            'app'    => FC_APP,
            default  => null,
        };
    }

}


