Zend\Expressive\Application::any PHP Method

any() public method

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
    public function any($path, $middleware, $name = null)
    {
        return $this->route($path, $middleware, null, $name);
    }