Skip to content

RouteMapperAware

  • Full name: \Qubus\Routing\Traits\RouteMapperAware

Methods

map

Add a route to the map.

public map(array $verbs, string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable
  • This method is abstract.

Parameters:

Parameter Type Description
$verbs array
$uri string
$callback callable|string

any

Add a route that responds to any HTTP method.

public any(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


get

Add a route that responds to GET HTTP method.

public get(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


post

Add a route that responds to POST HTTP method.

public post(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


patch

Add a route that responds to PATCH HTTP method.

public patch(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


put

Add a route that responds to PUT HTTP method.

public put(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


delete

Add a route that responds to DELETE HTTP method.

public delete(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


Add a route that responds to HEAD HTTP method.

public head(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


options

Add a route that responds to OPTIONS HTTP method.

public options(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


connect

Add a route that responds to CONNECT HTTP method.

public connect(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:


trace

Add a route that responds to TRACE HTTP method.

public trace(string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable

Parameters:

Parameter Type Description
$uri string
$callback callable|string

Throws:



Automatically generated on 2025-10-13