12use InvalidArgumentException;
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
Representation of an incoming, server-side HTTP request.
relativePathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route excluding the base path.
pushGroup($pattern, $callable)
Add a route group to the array.
getNamedRoute($name)
Get named route object.
map($methods, $pattern, $handler)
Add route.
popGroup()
Removes the last route group from the array.
dispatch(ServerRequestInterface $request)
Dispatch router for HTTP request.
pathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route including the base path.
Slim Framework (https://slimframework.com)