Property | Type | Description | |
---|---|---|---|
$collection | |||
$context | |||
$defaults | |||
$generator | |||
$loader | |||
$matcher | |||
$options | |||
$resource |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, mixed $resource, array $options = [], Symfony\Component\Routing\RequestContext $context = null, array $defaults = [] ) | 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. | |
getGenerator ( ) : UrlGeneratorInterface | Gets the UrlGenerator instance associated with this Router. | |
getMatcher ( ) : UrlMatcherInterface | Gets the UrlMatcher instance associated with this Router. | |
getOption ( string $key ) : mixed | Gets an option value. | |
getRouteCollection ( ) : |
Gets the RouteCollection instance associated with this Router. | |
match ( string $url ) : array | false | Tries to match a URL with a set of routes. | |
setContext ( Symfony\Component\Routing\RequestContext $context ) | Sets the request context. | |
setOption ( string $key, mixed $value ) | Sets an option. | |
setOptions ( array $options ) | Sets options. |
public __construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, mixed $resource, array $options = [], Symfony\Component\Routing\RequestContext $context = null, array $defaults = [] ) | ||
$loader | Symfony\Component\Config\Loader\LoaderInterface | A LoaderInterface instance |
$resource | mixed | The main resource to load |
$options | array | An array of options |
$context | Symfony\Component\Routing\RequestContext | The context |
$defaults | array | The default values |
public getContext ( ) : Symfony\Component\Routing\RequestContext | ||
return | Symfony\Component\Routing\RequestContext | The context |
public getGenerator ( ) : UrlGeneratorInterface | ||
return | UrlGeneratorInterface | A UrlGeneratorInterface instance |
public getMatcher ( ) : UrlMatcherInterface | ||
return | UrlMatcherInterface | A UrlMatcherInterface instance |
public getRouteCollection ( ) : |
||
return | A RouteCollection instance |
public setContext ( Symfony\Component\Routing\RequestContext $context ) | ||
$context | Symfony\Component\Routing\RequestContext | The context |
public setOptions ( array $options ) | ||
$options | array | An array of options |