class RouteCollectionUrlGenerator

Properties

protected string|null $baseUrl
protected RouteCollection $routes

Methods

__construct(string $baseUrl, RouteCollection $routes)

No description

string
route(string $name, array $parameters = [])

Generate a URL to a named route.

string
path(string $path)

Generate a URL to a path.

string
base()

Generate a URL to base with UrlGenerator's prefix.

Details

__construct(string $baseUrl, RouteCollection $routes)

Parameters

string $baseUrl
RouteCollection $routes

string route(string $name, array $parameters = [])

Generate a URL to a named route.

Parameters

string $name
array $parameters

Return Value

string

string path(string $path)

Generate a URL to a path.

Parameters

string $path

Return Value

string

string base()

Generate a URL to base with UrlGenerator's prefix.

Return Value

string