_middleware

Simple helper to register a middleware

Parameters
Closure $closure

Anonymous function

#
string $event = 'before'

before (default) or after

#
Returns
object

LucidFrame\Core\Middleware