class AkismetMiddleware implements HTTPMiddleware (View source)

Allows akismet to be configured via siteconfig instead of hard-coded configuration

Methods

public
process(HTTPRequest $request, callable $delegate)

Generate response for the given request

protected
registerAkismetSpamProtector()

No description

protected
bool
isDBReady()

Make sure the DB is ready before accessing siteconfig db field

Details

HTTPResponse process(HTTPRequest $request, callable $delegate)

Generate response for the given request

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse

protected registerAkismetSpamProtector()

No description

protected bool isDBReady()

Make sure the DB is ready before accessing siteconfig db field

Return Value

bool