Свойство | Type | Description | |
---|---|---|---|
$requestContext | Symfony\Component\Routing\RequestContext | ||
$requestStack | Symfony\Component\HttpFoundation\RequestStack | ||
$urlGenerator | Symfony\Component\Routing\Generator\UrlGeneratorInterface |
Méthode | Description | |
---|---|---|
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, string | null $override = null ) | Constructor. | |
getSubscribedEvents ( ) | ||
getUrl ( ) : string | null | Returns the canonical url for the current request, or null if called outside of the request cycle. | |
onRequest ( |
Sets the scheme and host overrides (if any) on the RequestContext. |
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, string | null $override = null ) | ||
$requestStack | Symfony\Component\HttpFoundation\RequestStack | |
$requestContext | Symfony\Component\Routing\RequestContext | |
$urlGenerator | Symfony\Component\Routing\Generator\UrlGeneratorInterface | |
$override | string | null | An optional scheme/host override. |
public onRequest ( |
||
$event |
protected RequestContext,Symfony\Component\Routing $requestContext | ||
Résultat | Symfony\Component\Routing\RequestContext |
protected RequestStack,Symfony\Component\HttpFoundation $requestStack | ||
Résultat | Symfony\Component\HttpFoundation\RequestStack |