src/Sulu/Component/Webspace/Manager/WebspaceCollectionBuilder.php
private function generateUrlAddress($pattern, $replacers)
    {
        foreach ($replacers as $replacer => $value) {
            $pattern = $this->urlReplacer->replace($pattern, $replacer, $value);
        }

        return $pattern;
    }
private function generateUrlAddress($pattern, $replacers)
    {
        foreach ($replacers as $replacer => $value) {
            $pattern = $this->urlReplacer->replace($pattern, $replacer, $value);
        }

        return $pattern;
    }
private function generateUrlAddress ( $ pattern , $ replacers ) { foreach ( $ replacers as $ replacer => $ value ) { $ pattern = $ this -> urlReplacer -> replace ( $ pattern , $ replacer , $ value ) ; } return $ pattern ; }
Replaces the given values in the pattern.

@param string $pattern
@param array $replacers

@return string
Replaces the given values in the pattern .