LinkGenerator
final class LinkGenerator
Link generator.
Properties
internal | $lastRequest |
Methods
__construct(Router $router, UrlScript $refUrl, IPresenterFactory|null $presenterFactory = null)
No description
string|null
link(string $destination, array $args = [], Component|null $component = null, string|null $mode = null)
Generates URL to presenter.
createRequest(Component|null $component, string $destination, array $args, string $mode)
No description
static array
parseDestination(string $destination)
Parse destination in format "[//] [[[module:]presenter:]action | signal! | this | @alias] [?query] [#fragment]"
string
withReferenceUrl(string $url)
No description
Details
at line 26
__construct(Router $router, UrlScript $refUrl, IPresenterFactory|null $presenterFactory = null)
No description
at line 39
string|null
link(string $destination, array $args = [], Component|null $component = null, string|null $mode = null)
Generates URL to presenter.
at line 62
Request
createRequest(Component|null $component, string $destination, array $args, string $mode)
internal |
No description
at line 238
static array
parseDestination(string $destination)
internal |
Parse destination in format "[//] [[[module:]presenter:]action | signal! | this | @alias] [?query] [#fragment]"
at line 262
string
requestToUrl(Request $request, bool|null $relative = false)
Converts Request to URL.
at line 283
LinkGenerator
withReferenceUrl(string $url)
No description