public function getEnvOption($key, $default = null)
    {
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
            return $default;
        }

        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
            return $default;
        }

        if (array_key_exists($key, $this->configuration['environments'][$this->environment])) {
            return $this->configuration['environments'][$this->environment][$key];
        }

        return $default;
    }
public function getEnvOption($key, $default = null)
    {
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
            return $default;
        }

        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
            return $default;
        }

        if (array_key_exists($key, $this->configuration['environments'][$this->environment])) {
            return $this->configuration['environments'][$this->environment][$key];
        }

        return $default;
    }
public function getEnvOption ( $ key , $ default = null ) { if ( ! array_key_exists ( 'environments' , $ this -> configuration ) || ! is_array ( $ this -> configuration [ 'environments' ] ) ) { return $ default ; } if ( ! array_key_exists ( $ this -> environment , $ this -> configuration [ 'environments' ] ) ) { return $ default ; } if ( array_key_exists ( $ key , $ this -> configuration [ 'environments' ] [ $ this -> environment ] ) ) { return $ this -> configuration [ 'environments' ] [ $ this -> environment ] [ $ key ] ; } return $ default ; }
Returns the Configuration Option for a specific section the current Environment

@param string $key Section/Parameter name
@param mixed $default Default value
@return mixed
Returns the Configuration Option for a specific section the current Environment