src/ReleaseHistoryClient.php
public function getReleases($moduleName, $coreVersion)
    {
        $request = $this->httpClient->get(['{module_name}/{core_version}', 
            ['module_name' => $moduleName, 'core_version' => $coreVersion]]);
        
        if ($request->getStatusCode() != 200) {
            throw new \Exception(sprintf('Status code was not OK. %d returned instead.', $request->getStatusCode()));
        }
        
        $response   = (string) $request->getBody();
        return $this->xmlToArray($response);
    }
public function getReleases($moduleName, $coreVersion)
    {
        $request = $this->httpClient->get(['{module_name}/{core_version}', 
            ['module_name' => $moduleName, 'core_version' => $coreVersion]]);
        
        if ($request->getStatusCode() != 200) {
            throw new \Exception(sprintf('Status code was not OK. %d returned instead.', $request->getStatusCode()));
        }
        
        $response   = (string) $request->getBody();
        return $this->xmlToArray($response);
    }
public function getReleases ( $ moduleName , $ coreVersion ) { $ request = $ this -> httpClient -> get ( [ '{module_name}/{core_version}' , [ 'module_name' => $ moduleName , 'core_version' => $ coreVersion ] ] ) ; if ( $ request -> getStatusCode ( ) != 200 ) { throw new \ Exception ( sprintf ( 'Status code was not OK. %d returned instead.' , $ request -> getStatusCode ( ) ) ) ; } $ response = ( string ) $ request -> getBody ( ) ; return $ this -> xmlToArray ( $ response ) ; }
Fetch releases according to given module and core version

@param string $moduleName name of the module
@param string $coreVersion the core version all|8.x|7.x|6.x|5.x|4.x

@return array xml body response as a associative array
Fetch releases according to given module and core version