Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 604 Bytes
<?php
$container->register(
\King23\Http\MiddlewareQueueInterface::class,
function () use ($container) {
/** @var \King23\Http\MiddlewareQueue $queue */
$queue = $container->getInstanceOf(\King23\Http\MiddlewareQueue::class);
#$queue->addMiddleware(\King23\Http\Middleware\Whoops\Whoops::class); // nicely formatted exceptions, don't use in production
$queue->addMiddleware(\Castle23\StaticFileMiddleware::class); // server static files, don't use in production
$queue->addMiddleware(\Slim\App::class);
return $queue;
}
);