Larabros\Elogram\Http\Middleware\AbstractMiddleware

class AbstractMiddleware

An abstract middleware class.

property nextHandler

protected callable

The next handler in the stack.

property config

protected ConfigInterface

The application configuration.

__construct($nextHandler, ConfigInterface $config)

Creates an instance of AbstractMiddleware.

Parameters:
  • $nextHandler
  • $config (ConfigInterface) –
__invoke(RequestInterface $request, $options)

{@inheritDoc}

Parameters:
  • $request (RequestInterface) –
  • $options