fetchUpdateVersions example


        if ($request->getSession()->has('latestVersions')) {
            $sessionValue = $request->getSession()->get('latestVersions');
            \assert(\is_array($sessionValue));

            return $sessionValue;
        }

        $shopwarePath = $this->recoveryManager->getShopwareLocation();

        $currentVersion = $this->recoveryManager->getCurrentShopwareVersion($shopwarePath);
        $latestVersions = $this->releaseInfoProvider->fetchUpdateVersions($currentVersion);

        $request->getSession()->set('latestVersions', $latestVersions);

        return $latestVersions;
    }
}
'6.4.20.0',
                '6.4.19.0',
                '6.4.18.0',
                '6.4.12.0',
                '6.4.11.0',
                '6.3.5.0',
            ], \JSON_THROW_ON_ERROR)),
        ]);

        $releaseInfoProvider = new ReleaseInfoProvider($mockClient);

        $releaseInfo = $releaseInfoProvider->fetchUpdateVersions('6.4.0.0');

        static::assertSame(
            [
                '6.5.0.0-rc1',
                '6.4.20.0',
                '6.4.19.0',
                '6.4.18.0',
            ],
            $releaseInfo
        );
    }

    
Home | Imprint | This part of the site doesn't use cookies.