RssResponseRelativeUrlFilter
class RssResponseRelativeUrlFilter implements EventSubscriberInterface (View source)
Subscribes to filter RSS responses, to make relative URIs absolute.
Methods
onResponse(ResponseEvent $event)
Converts relative URLs to absolute URLs.
string
transformRootRelativeUrlsToAbsolute(string $rss_markup, Request $request)
Converts all root-relative URLs to absolute URLs in RSS markup.
static
getSubscribedEvents()
{@inheritdoc}
Details
onResponse(ResponseEvent $event)
Converts relative URLs to absolute URLs.
protected string
transformRootRelativeUrlsToAbsolute(string $rss_markup, Request $request)
Converts all root-relative URLs to absolute URLs in RSS markup.
Does not change any existing protocol-relative or absolute URLs.
static
getSubscribedEvents()
{@inheritdoc}