|
| __construct (RouteCollectorInterface $routeCollector) |
|
| fullUrlFor (UriInterface $uri, string $routeName, array $data=[], array $queryParams=[]) |
| {Get fully qualified URL for named route.- Parameters
-
UriInterface | $uri | |
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
}
|
|
| relativeUrlFor (string $routeName, array $data=[], array $queryParams=[]) |
| {Build the path for a named route excluding the base path.- Parameters
-
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
- Exceptions
-
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
}
|
|
| urlFor (string $routeName, array $data=[], array $queryParams=[]) |
| {Build the path for a named route including the base path.- Parameters
-
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
- Exceptions
-
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
}
|
|
◆ fullUrlFor()
Slim\Routing\RouteParser::fullUrlFor |
( |
UriInterface | $uri, |
|
|
string | $routeName, |
|
|
array | $data = [], |
|
|
array | $queryParams = [] ) |
{Get fully qualified URL for named route.
- Parameters
-
UriInterface | $uri | |
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
}
Implements Slim\Interfaces\RouteParserInterface.
◆ relativeUrlFor()
Slim\Routing\RouteParser::relativeUrlFor |
( |
string | $routeName, |
|
|
array | $data = [], |
|
|
array | $queryParams = [] ) |
{Build the path for a named route excluding the base path.
- Parameters
-
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
- Exceptions
-
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
}
Implements Slim\Interfaces\RouteParserInterface.
◆ urlFor()
Slim\Routing\RouteParser::urlFor |
( |
string | $routeName, |
|
|
array | $data = [], |
|
|
array | $queryParams = [] ) |
{Build the path for a named route including the base path.
- Parameters
-
string | $routeName | Route name |
| array<string,string> | $data Named argument replacement data |
| array<string,string> | $queryParams Optional query string parameters |
- Exceptions
-
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
}
Implements Slim\Interfaces\RouteParserInterface.
The documentation for this class was generated from the following file:
- lib/slim/slim/Slim/Routing/RouteParser.php