public function getValueByPathOrDefaultValue($path, $defaultValue)
    {
        $value = $this->getValueByPath($path);
        if (is_null($value)) {
            return $defaultValue;
        }

        return $value;
    }
public function getValueByPathOrDefaultValue($path, $defaultValue)
    {
        $value = $this->getValueByPath($path);
        if (is_null($value)) {
            return $defaultValue;
        }

        return $value;
    }
public function getValueByPathOrDefaultValue ( $ path , $ defaultValue ) { $ value = $ this -> getValueByPath ( $ path ) ; if ( is_null ( $ value ) ) { return $ defaultValue ; } return $ value ; }
This method can be used to get  a configuration value by path if it exists or return a
default value when it does not exist.

@param string $path
@param mixed $defaultValue
@return mixed
This method can be used to get a configuration value by path if it exists or return a default value when it does not exist .