Interface

eZ\Publish\Core\MVC\Symfony\SiteAccess\URILexer

interface URILexer

Interface for SiteAccess matchers that need to alter the URI after matching.

This is useful when you have the siteaccess in the URI like "//my/awesome/uri".

Methods

string analyseURI(string $uri)

Analyses $uri and removes the siteaccess part, if needed.

string analyseLink(string $linkUri)

Analyses $linkUri when generating a link to a route, in order to have the siteaccess part back in the URI.

Details

at line 24
public string analyseURI(string $uri)

Analyses $uri and removes the siteaccess part, if needed.

Parameters

string $uri The original URI

Return Value

string The modified URI

Analyses $linkUri when generating a link to a route, in order to have the siteaccess part back in the URI.

Parameters

string $linkUri

Return Value

string The modified link URI