class RouteCollectionUrlGenerator

Properties

protected string|null $baseUrl
protected RouteCollection $routes

Methods

__construct(string $baseUrl, RouteCollection $routes)

No description

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

<p>Generate a URL to a named route.</p>

string
path(string $path)

<p>Generate a URL to a path.</p>

string
base()

<p>Generate a URL to base with UrlGenerator's prefix.</p>

Details

__construct(string $baseUrl, RouteCollection $routes)

Parameters

string $baseUrl
RouteCollection $routes

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

<p>Generate a URL to a named route.</p>

Parameters

string $name
array $parameters

Return Value

string

string path(string $path)

<p>Generate a URL to a path.</p>

Parameters

string $path

Return Value

string

string base()

<p>Generate a URL to base with UrlGenerator's prefix.</p>

Return Value

string