final class LinkGenerator

Link generator.

Methods

__construct(Router $router, UrlScript $refUrl, IPresenterFactory|null $presenterFactory = null)

No description

string
link(string $dest, array $params = [])

Generates URL to presenter.

withReferenceUrl(string $url)

No description

Details

at line 34
__construct(Router $router, UrlScript $refUrl, IPresenterFactory|null $presenterFactory = null)

No description

Parameters

Router $router
UrlScript $refUrl
IPresenterFactory|null $presenterFactory

Generates URL to presenter.

Parameters

string $dest

in format "[[[module:]presenter:]action] [#fragment]"

array $params

Return Value

string

Exceptions

InvalidLinkException

at line 99
LinkGenerator withReferenceUrl(string $url)

No description

Parameters

string $url

Return Value

LinkGenerator

Traits

SmartObject