Example #1
0
 /**
  * Get the config store on composer file in basePath
  *
  * @param string $basePath
  * @return \Illuminate\Support\Collection
  */
 private function getConfiguration($basePath)
 {
     $config = new Config($basePath);
     $applications = $config->applications();
     if ($applications->isEmpty()) {
         return $this->registerError('There are not valid laravel configuration on: ' . PHP_EOL . $config->filePath());
     }
     if ($applications->count() > 1 && ($appName = $this->findApplicationFromArgvInput($applications))) {
         return $applications->get($appName);
     }
     return $applications->first();
 }