public function transform( $target = null, $controller = null, $action = null, array $params = [], array $trailing = [], array $config = [] )
	{
		if( !empty( $trailing ) ) {
			$params['trailing'] = join( '_', $trailing );
		}

		$params = $this->sanitize( $params );
		$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH;

		if( isset( $config['absoluteUri'] ) ) {
			$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL;
		}

		return $this->router->generate( $target, $params + $this->fixed, $refType );
	}
public function transform( $target = null, $controller = null, $action = null, array $params = [], array $trailing = [], array $config = [] )
	{
		if( !empty( $trailing ) ) {
			$params['trailing'] = join( '_', $trailing );
		}

		$params = $this->sanitize( $params );
		$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH;

		if( isset( $config['absoluteUri'] ) ) {
			$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL;
		}

		return $this->router->generate( $target, $params + $this->fixed, $refType );
	}
public function transform ( $ target = null , $ controller = null , $ action = null , array $ params = [ ] , array $ trailing = [ ] , array $ config = [ ] ) { if ( ! empty ( $ trailing ) ) { $ params [ 'trailing' ] = join ( '_' , $ trailing ) ; } $ params = $ this -> sanitize ( $ params ) ; $ refType = \ Symfony \ Component \ Routing \ Generator \ UrlGeneratorInterface :: ABSOLUTE_PATH ; if ( isset ( $ config [ 'absoluteUri' ] ) ) { $ refType = \ Symfony \ Component \ Routing \ Generator \ UrlGeneratorInterface :: ABSOLUTE_URL ; } return $ this -> router -> generate ( $ target , $ params + $ this -> fixed , $ refType ) ; }
Returns the URL assembled from the given arguments.

@param string|null $target Route or page which should be the target of the link (if any)
@param string|null $controller Name of the controller which should be part of the link (if any)
@param string|null $action Name of the action which should be part of the link (if any)
@param array $params Associative list of parameters that should be part of the URL
@param array $trailing Trailing URL parts that are not relevant to identify the resource (for pretty URLs)
@param array $config Additional configuration parameter per URL
@return string Complete URL that can be used in the template
Returns the URL assembled from the given arguments .