luisinder / maintenance-middleware
Slim 3 middleware that returns an error when maintenance mode is activated
1.0.3
2016-11-14 10:22 UTC
Requires
- psr/http-message: ^1.0
README
Synopsis
Slim 3 middleware that returns an error when maintenance mode is activated.
Installation
With Composer:
composer require luisinder/maintenance-middleware
Params
- Status: Enable/Disable Middleware
- Object returned: This object is return into response when status = true
Use
$errorObject = new Example\ErrorClass(); $app->add(new Luisinder\Middleware\Maintenance(false,$errorObject));