public any ( string | Zend\Expressive\Router\Route $path, callable | string $middleware, null | string $name = null ) : Zend\Expressive\Router\Route | ||
$path | string | Zend\Expressive\Router\Route | |
$middleware | callable | string | Middleware (or middleware service name) to associate with route. |
$name | null | string | the name of the route |
return | Zend\Expressive\Router\Route |