Configmiddleware

Overview
ConfigMiddleware puts the application config array in the request so other middleware can read settings.

Usage

$config = require 'config.php';
$middleware[] = new ConfigMiddleware($config);

Place this near the start of the pipeline.