resolveOptions() 공개 메소드

public resolveOptions ( array $options )
$options array
예제 #1
0
 /**
  * @return array
  */
 private function prepareOptions(array $cliOptions)
 {
     $options = $this->convertDashKeysToCamel($cliOptions);
     $options = $this->loadOptionsFromConfig($options);
     $this->warnAboutDeprecatedOptions($options);
     $options = $this->unsetDeprecatedOptions($options);
     return $this->configuration->resolveOptions($options);
 }
 /**
  * @return array
  */
 private function prepareOptions(array $cliOptions)
 {
     $cliOptions = $this->convertDashKeysToCamel($cliOptions);
     $configFile = $cliOptions[CO::CONFIG];
     $options = $cliOptions;
     if (file_exists($configFile)) {
         // get reader by file extension
         $configFileOptions = ConfigurationReader::getReader($configFile)->read();
         $options = array_merge($options, $configFileOptions);
     }
     return $this->configuration->resolveOptions($options);
 }