Router
class Router (View source)
Methods
Collection
getCollection()
No description
get(string $path, callable|array $cb)
get, route de type GET ou bien retourne les variable ajoutés dans Bow
any(string $path, callable $cb)
any, route de tout type GET|POST|DELETE|PUT|OPTIONS|PATCH
match(array $methods, string $path, callable $cb = null)
match, route de tout type de method
Details
__construct(Loader $config, Collection $collection)
Router constructor.
Collection
getCollection()
No description
Route
get(string $path, callable|array $cb)
get, route de type GET ou bien retourne les variable ajoutés dans Bow
Route
post(string $path, callable $cb)
post, route de type POST
any(string $path, callable $cb)
any, route de tout type GET|POST|DELETE|PUT|OPTIONS|PATCH
Route
delete(string $path, callable $cb)
delete, route de tout type DELETE
Route
put(string $path, callable $cb)
put, route de tout type PUT
Route
patch(string $path, callable $cb)
patch, route de tout type PATCH
Route
options(string $path, callable $cb)
patch, route de tout type PATCH
match(array $methods, string $path, callable $cb = null)
match, route de tout type de method
Router
group(string $prefix, callable $cb)
mount, ajoute un branchement.