src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php
public function mapContent($contentType, $mode, $content, $hosts)
    {
        $rewriter = new Rewriter($this);
        $rewriter->setLocalDomains($hosts);

        foreach ($this->contentMappers as $mapper) {
            if ($mapper->supports($contentType)) {
                return $mapper->processAliasing($content, $mode, $rewriter);
            }
        }

        return $content;
    }
public function mapContent($contentType, $mode, $content, $hosts)
    {
        $rewriter = new Rewriter($this);
        $rewriter->setLocalDomains($hosts);

        foreach ($this->contentMappers as $mapper) {
            if ($mapper->supports($contentType)) {
                return $mapper->processAliasing($content, $mode, $rewriter);
            }
        }

        return $content;
    }
public function mapContent ( $ contentType , $ mode , $ content , $ hosts ) { $ rewriter = new Rewriter ( $ this ) ; $ rewriter -> setLocalDomains ( $ hosts ) ; foreach ( $ this -> contentMappers as $ mapper ) { if ( $ mapper -> supports ( $ contentType ) ) { return $ mapper -> processAliasing ( $ content , $ mode , $ rewriter ) ; } } return $ content ; }
Transform internal URLS to public URLS using our defined mappers

@param string $contentType
@param string $mode
@param string $content
@param string[] $hosts
@return string
Transform internal URLS to public URLS using our defined mappers