src/Foundation/DI.php
public static function one()
    {
        if (null === self::$instance) {
            self::$instance = new static();
            self::$instance->onConstruct();
        }

        return self::$instance;
    }
public static function one()
    {
        if (null === self::$instance) {
            self::$instance = new static();
            self::$instance->onConstruct();
        }

        return self::$instance;
    }
public static function one ( ) { if ( null === self :: $ instance ) { self :: $ instance = new static ( ) ; self :: $ instance -> onConstruct ( ) ; } return self :: $ instance ; }
获取 DI 单体实例
获取 DI 单体实例