src/Leevel/Kernel/App.php
public static function singletons(?string $path = null): IApp
    {
        if (null !== static::$app) {
            return static::$app;
        }

        return static::$app = new static($path);
    }
public static function singletons(?string $path = null): IApp
    {
        if (null !== static::$app) {
            return static::$app;
        }

        return static::$app = new static($path);
    }
返回应用.

@param string $path

@return static
@codeCoverageIgnore