Altax\Foundation\ModuleFacade::resolveModuleInstance PHP Method

resolveModuleInstance() protected static method

Resolve the facade root instance from the container.
protected static resolveModuleInstance ( string $name ) : mixed
$name string
return mixed
    protected static function resolveModuleInstance($name)
    {
        if (is_object($name)) {
            return $name;
        }
        if (isset(static::$resolvedInstance[$name])) {
            return static::$resolvedInstance[$name];
        }
        return static::$resolvedInstance[$name] = static::$container->getModule($name);
    }