public function getPackages()
 {
     if ($this->hasProviders()) {
         throw new \LogicException('Composer repositories that have providers can not load the complete list of packages, use getProviderNames instead.');
     }
     return parent::getPackages();
 }