HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/lcc.kaunokolegija.lt/wp-content/plugins/codepress-admin-columns/classes/Container.php
<?php

declare(strict_types=1);

namespace AC;

use AC\Asset\Location\Absolute;
use AC\ListScreenRepository\Storage;
use AC\Vendor\Psr\Container\ContainerInterface;
use LogicException;

class Container
{

    private static $instance;

    public static function set_container(ContainerInterface $container): void
    {
        if (self::$instance) {
            throw new LogicException('Container is already set.');
        }

        self::$instance = $container;
    }

    public static function get_location(): Absolute
    {
        return self::$instance->get(Absolute::class);
    }

    public static function get_storage(): Storage
    {
        return self::$instance->get(Storage::class);
    }

}