public function build(array $arguments = [])
    {
        $arguments = Arrays::arrayMergeRecursiveOverrule($this->arguments, $arguments);
        $arguments = $this->mergeArgumentsWithRequestArguments($arguments);

        $httpRequest = $this->request->getHttpRequest();

        $uriPathPrefix = $this->environment->isRewriteEnabled() ? '' : 'index.php/';
        $uriPathPrefix = $httpRequest->getScriptRequestPath() . $uriPathPrefix;
        $resolveContext = new ResolveContext($httpRequest->getBaseUri(), $arguments, $this->createAbsoluteUri, $uriPathPrefix);
        $resolvedUri = $this->router->resolve($resolveContext);
        if ($this->section !== '') {
            $resolvedUri = $resolvedUri->withFragment($this->section);
        }

        $this->lastArguments = $arguments;
        return (string)$resolvedUri;
    }
public function build(array $arguments = [])
    {
        $arguments = Arrays::arrayMergeRecursiveOverrule($this->arguments, $arguments);
        $arguments = $this->mergeArgumentsWithRequestArguments($arguments);

        $httpRequest = $this->request->getHttpRequest();

        $uriPathPrefix = $this->environment->isRewriteEnabled() ? '' : 'index.php/';
        $uriPathPrefix = $httpRequest->getScriptRequestPath() . $uriPathPrefix;
        $resolveContext = new ResolveContext($httpRequest->getBaseUri(), $arguments, $this->createAbsoluteUri, $uriPathPrefix);
        $resolvedUri = $this->router->resolve($resolveContext);
        if ($this->section !== '') {
            $resolvedUri = $resolvedUri->withFragment($this->section);
        }

        $this->lastArguments = $arguments;
        return (string)$resolvedUri;
    }
public function build ( array $ arguments = [ ] ) { $ arguments = Arrays :: arrayMergeRecursiveOverrule ( $ this -> arguments , $ arguments ) ; $ arguments = $ this -> mergeArgumentsWithRequestArguments ( $ arguments ) ; $ httpRequest = $ this -> request -> getHttpRequest ( ) ; $ uriPathPrefix = $ this -> environment -> isRewriteEnabled ( ) ? '' : 'index.php/' ; $ uriPathPrefix = $ httpRequest -> getScriptRequestPath ( ) . $ uriPathPrefix ; $ resolveContext = new ResolveContext ( $ httpRequest -> getBaseUri ( ) , $ arguments , $ this -> createAbsoluteUri , $ uriPathPrefix ) ; $ resolvedUri = $ this -> router -> resolve ( $ resolveContext ) ; if ( $ this -> section !== '' ) { $ resolvedUri = $ resolvedUri -> withFragment ( $ this -> section ) ; } $ this -> lastArguments = $ arguments ; return ( string ) $ resolvedUri ; }
Builds the URI

@param array $arguments optional URI arguments. Will be merged with $this->arguments with precedence to $arguments
@return string the (absolute or relative) URI as string
@api
Builds the URI