Skip to content

RequestHandler: add Example

Terry L edited this page Jun 18, 2020 · 3 revisions

add($middleware)

  • param MiddlewareInterface middleware * The middleware.
  • return void

Example:

$app->add(new ApiMiddleware());

Clone this wiki locally