Zend\Mvc\Controller\Plugin\Redirect::toRoute
Generates a URL based on a route
Signature
public function toRoute([string
$route = null,
[array
$params = false,
[array
$options = false,
[bool
$reuseMatchedParams = false]]]] )
Parameters
$route
—
string
- RouteInterface name
$params
—
array
- Parameters to use in url generation, if any
$options
—
array
- RouteInterface-specific options to use in url generation, if any
$reuseMatchedParams
—
object
- Whether to reuse matched parameters
Returns
- Response
Errors/Exceptions
-
DomainException
- if composed controller does not implement InjectApplicationEventInterface, or