Pagekit\Console\Commands\SelfupdateCommand::getVersions PHP Метод

getVersions() защищенный Метод

protected getVersions ( ) : mixed
Результат mixed
    protected function getVersions()
    {
        if (!($res = file_get_contents($this->container->get('system.api') . '/api/update'))) {
            App::abort(500, 'Could not obtain latest Version.');
        }
        return json_decode($res, true);
    }