luisinder/maintenance-middleware

当启用维护模式时返回错误的 Slim 3 中间件

1.0.3 2016-11-14 10:22 UTC

This package is auto-updated.

Last update: 2024-09-20 04:34:12 UTC


README

Latest Stable Version Total Downloads

摘要

当启用维护模式时返回错误的 Slim 3 中间件。

安装

使用 Composer

composer require luisinder/maintenance-middleware

参数

  • 状态:启用/禁用中间件
  • 返回对象:当状态 = true 时,此对象将被返回到响应中

使用

$errorObject = new Example\ErrorClass();
$app->add(new Luisinder\Middleware\Maintenance(false,$errorObject));