private function addEnvironmentVariables($value)
    {
        if (is_array($value)) {
            $value = array_map(array($this, __METHOD__), $value);
        } elseif (is_string($value)) {
            $value = strtr($value, $this->environmentVariables);
        }

        return $value;
    }