src/mg/Ding/Container/Impl/ContainerImpl.php
private function _searchAndReplaceProperties($value)
    {
        if (is_string($value)) {
            foreach ($this->_properties as $k => $v) {
                if (strpos($value, $k) !== false) {
                    if (is_string($v)) {
                        $value = str_replace($k, $v, $value);
                    } else {
                        $value = $v;
                        // Assigned value is not a string, so we cant use
                        // strpos anymore on it (i.e: cant continue replacing)
                        break;
                    }
                }
            }
        }
        return $value;
    }
private function _searchAndReplaceProperties($value)
    {
        if (is_string($value)) {
            foreach ($this->_properties as $k => $v) {
                if (strpos($value, $k) !== false) {
                    if (is_string($v)) {
                        $value = str_replace($k, $v, $value);
                    } else {
                        $value = $v;
                        // Assigned value is not a string, so we cant use
                        // strpos anymore on it (i.e: cant continue replacing)
                        break;
                    }
                }
            }
        }
        return $value;
    }
Will try to search and replace the properties found in the given
value.

@param string $value

@return string