60 return Request::createFromEnvironment(
$container->get(
'environment'));
73 $headers =
new Headers([
'Content-Type' =>
'text/html; charset=UTF-8']);
90 $routerCacheFile =
false;
91 if (isset(
$container->get(
'settings')[
'routerCacheFile'])) {
92 $routerCacheFile =
$container->get(
'settings')[
'routerCacheFile'];
96 $router = (
new Router)->setCacheFile($routerCacheFile);
97 if (method_exists($router,
'setContainer')) {
156 $container->get(
'settings')[
'displayErrorDetails']
179 if (!isset(
$container[
'notAllowedHandler'])) {
193 $container[
'notAllowedHandler'] =
function () {
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
This class resolves a string of the format 'class:method' into a closure that can be dispatched...
Slim's default Service Provider.
Default route callback strategy with route parameters as an array of arguments.
Default Slim application not found handler.
Slim Framework (https://slimframework.com)
Default Slim application not allowed handler.
Default Slim application error handler for PHP 7+ Throwables.
Default Slim application error handler.