PHP 클래스 Symfony\Component\Routing\Generator\UrlGenerator

저자: Fabien Potencier ([email protected])
상속: implements Symfony\Component\Routing\Generator\UrlGeneratorInterface, implements Symfony\Component\Routing\Generator\ConfigurableRequirementsInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$context
$decodedChars

공개 메소드들

메소드 설명
__construct ( RouteCollection $routes, Symfony\Component\Routing\RequestContext $context ) Constructor.
generate ( string $name, array $parameters = [], boolean $absolute = false ) : string Generates a URL from the given parameters.
getContext ( ) : Symfony\Component\Routing\RequestContext Gets the request context.
setContext ( Symfony\Component\Routing\RequestContext $context ) Sets the request context.

보호된 메소드들

메소드 설명
doGenerate ( $variables, $defaults, $requirements, $tokens, $parameters, $name, $absolute )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( RouteCollection $routes, Symfony\Component\Routing\RequestContext $context )
$routes Symfony\Component\Routing\RouteCollection A RouteCollection instance
$context Symfony\Component\Routing\RequestContext The context

doGenerate() 보호된 메소드

protected doGenerate ( $variables, $defaults, $requirements, $tokens, $parameters, $name, $absolute )

generate() 공개 메소드

Generates a URL from the given parameters.
public generate ( string $name, array $parameters = [], boolean $absolute = false ) : string
$name string The name of the route
$parameters array An array of parameters
$absolute boolean Whether to generate an absolute URL
리턴 string The generated URL

getContext() 공개 메소드

Gets the request context.
public getContext ( ) : Symfony\Component\Routing\RequestContext
리턴 Symfony\Component\Routing\RequestContext The context

setContext() 공개 메소드

Sets the request context.
public setContext ( Symfony\Component\Routing\RequestContext $context )
$context Symfony\Component\Routing\RequestContext The context

프로퍼티 상세

$context 보호되어 있는 프로퍼티

protected $context

$decodedChars 보호되어 있는 프로퍼티

protected $decodedChars