public static function instance()

in src/Providers/ChainProvider.php [173:187]


    public static function instance()
    {
        return static function () {
            $instance = Helper::envNotEmpty('ALIBABA_CLOUD_ECS_METADATA');
            if ($instance) {
                Credentials::set(
                    self::getDefaultName(),
                    [
                        'type'      => 'ecs_ram_role',
                        'role_name' => $instance,
                    ]
                );
            }
        };
    }