20 return [
'BEER',
'WINE'];
26 $server->on(
'beforeMethod', [$this,
'beforeMethod']);
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
The baseclass for all server plugins.
getHTTPMethods($uri)
Use this method to tell the server this plugin defines additional HTTP methods.
initialize(Server $server)
This initializes the plugin.
getFeatures()
This method should return a list of server-features.
beforeMethod(RequestInterface $request, ResponseInterface $response)
The RequestInterface represents a HTTP request.
getMethod()
Returns the current HTTP method.
This interface represents a HTTP response.