RedirectResponseSubscriber
class RedirectResponseSubscriber implements EventSubscriberInterface (View source)
Allows manipulation of the response object when performing a redirect.
Properties
| protected UnroutedUrlAssemblerInterface | $unroutedUrlAssembler | The unrouted URL assembler service. |
Methods
__construct(UnroutedUrlAssemblerInterface $url_assembler, RequestContext $request_context)
Constructs a RedirectResponseSubscriber object.
checkRedirectUrl(ResponseEvent $event)
Allows manipulation of the response object when performing a redirect.
string
getDestinationAsAbsoluteUrl(string $destination, string $scheme_and_host)
Converts the passed in destination into an absolute URL.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
Details
__construct(UnroutedUrlAssemblerInterface $url_assembler, RequestContext $request_context)
Constructs a RedirectResponseSubscriber object.
checkRedirectUrl(ResponseEvent $event)
Allows manipulation of the response object when performing a redirect.
protected string
getDestinationAsAbsoluteUrl(string $destination, string $scheme_and_host)
Converts the passed in destination into an absolute URL.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.