final class LinkGenerator

Link generator.

Methods

__construct(Router $router, UrlScript $refUrl, IPresenterFactory $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 $presenterFactory = null)

No description

Parameters

Router $router
UrlScript $refUrl
IPresenterFactory $presenterFactory

Generates URL to presenter.

Parameters

string $dest

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

array $params

Return Value

string

Exceptions

InvalidLinkException

at line 96
LinkGenerator withReferenceUrl(string $url)

No description

Parameters

string $url

Return Value

LinkGenerator

Traits

Strict class for better experience.