PHP 클래스 Contao\CoreBundle\Routing\UrlGenerator

상속: implements Symfony\Component\Routing\Generator\UrlGeneratorInterface
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $router, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $prependLocale ) Constructor.
generate ( string $name, array $parameters = [], integer $referenceType = self::ABSOLUTE_PATH ) : string Generates a Contao URL.
getContext ( )
setContext ( Symfony\Component\Routing\RequestContext $context )

비공개 메소드들

메소드 설명
addHostToContext ( Symfony\Component\Routing\RequestContext $context, array $parameters, string &$referenceType ) Sets the context from the domain.
getAutoItems ( array $parameters ) : array Returns the auto_item key from the parameters or the global array.
getHostAndPort ( $domain ) : array Extracts host and port from the domain.
prepareAlias ( string $alias, array &$parameters ) Adds the parameters to the alias.
prepareDomain ( Symfony\Component\Routing\RequestContext $context, array &$parameters, integer &$referenceType ) Forces the router to add the host if necessary.
prepareLocale ( array &$parameters ) Removes the locale parameter if it is disabled.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $router, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $prependLocale )
$router Symfony\Component\Routing\Generator\UrlGeneratorInterface
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface
$prependLocale boolean

generate() 공개 메소드

Generates a Contao URL.
public generate ( string $name, array $parameters = [], integer $referenceType = self::ABSOLUTE_PATH ) : string
$name string
$parameters array
$referenceType integer
리턴 string

getContext() 공개 메소드

public getContext ( )

setContext() 공개 메소드

public setContext ( Symfony\Component\Routing\RequestContext $context )
$context Symfony\Component\Routing\RequestContext