class ConfigureForumRoutes extends AbstractConfigureRoutes

Configure forum routes.

This event is fired when routes for the forum client are being registered.

Properties

RouteCollection $routes from AbstractConfigureRoutes
protected callable $handlerGenerator from AbstractConfigureRoutes

Methods

__construct(RouteCollection $routes, callable $handlerGenerator)

No description

get(string $url, string $name, $handler = 'Flarum\\Forum\\Controller\\ClientController')

No description

post(string $url, string $name, string $controller)

No description

patch(string $url, string $name, string $controller)

No description

delete(string $url, string $name, string $controller)

No description

route(string $method, string $url, string $name, string $controller)

No description

callable
toController(string $controller)

No description

Details

__construct(RouteCollection $routes, callable $handlerGenerator)

Parameters

RouteCollection $routes
callable $handlerGenerator

get(string $url, string $name, $handler = 'Flarum\\Forum\\Controller\\ClientController')

Parameters

string $url
string $name
$handler

post(string $url, string $name, string $controller)

Parameters

string $url
string $name
string $controller

patch(string $url, string $name, string $controller)

Parameters

string $url
string $name
string $controller

delete(string $url, string $name, string $controller)

Parameters

string $url
string $name
string $controller

protected route(string $method, string $url, string $name, string $controller)

Parameters

string $method
string $url
string $name
string $controller

protected callable toController(string $controller)

Parameters

string $controller

Return Value

callable