<?php
namespace Gestoreasy\Core\Admin;

use Gestoreasy\Core\Http\Request;

class AdminUserContext {
    private static array $map = [];
    public static function set(Request $req, array $user): void { self::$map[spl_object_id($req)] = $user; }
    public static function get(Request $req): ?array { return self::$map[spl_object_id($req)] ?? null; }
}