private function readConfiguration(array $options, DeploymentConfig $deploymentConfig, $inputKey)
    {
        $config = null;
        $option = $this->getOption($inputKey);

        if ($option) {
            $configPath = $option->getConfigPath($inputKey);
            $config = $options[$inputKey] ?? ($configPath != null ? $deploymentConfig->get($configPath) : $option->getDefault());
        }

        return $config;
    }
private function readConfiguration(array $options, DeploymentConfig $deploymentConfig, $inputKey)
    {
        $config = null;
        $option = $this->getOption($inputKey);

        if ($option) {
            $configPath = $option->getConfigPath($inputKey);
            $config = $options[$inputKey] ?? ($configPath != null ? $deploymentConfig->get($configPath) : $option->getDefault());
        }

        return $config;
    }
private function readConfiguration ( array $ options , DeploymentConfig $ deploymentConfig , $ inputKey ) { $ config = null ; $ option = $ this -> getOption ( $ inputKey ) ; if ( $ option ) { $ configPath = $ option -> getConfigPath ( $ inputKey ) ; $ config = $ options [ $ inputKey ] ?? ( $ configPath != null ? $ deploymentConfig -> get ( $ configPath ) : $ option -> getDefault ( ) ) ; } return $ config ; }
Read a value from the input with fallback to the current deployment config.

@param array            $options          Input options.
@param DeploymentConfig $deploymentConfig Deployment config.
@param string           $inputKey         Name of the variable in the input options.

@return mixed
Read a value from the input with fallback to the current deployment config .