PhpBrew\Extension\Provider\RepositoryDslParser::toUrl PHP Method

toUrl() protected method

protected toUrl ( $dsl )
    protected function toUrl($dsl)
    {
        $url = $dsl;
        foreach (self::$macros as $target => $sources) {
            $url = str_replace($sources, $target, $url);
        }
        return preg_replace('#\\.git$#', '', $url);
    }
RepositoryDslParser