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 () {
An exception for terminatinating execution or to throw for unit testing.
This class resolves a string of the format 'class:method' into a closure that can be dispatched.
Slim's default Service Provider.
Default Slim application error handler.
Default Slim application not allowed handler.
Default Slim application not found handler.
Default Slim application error handler for PHP 7+ Throwables.
Default route callback strategy with route parameters as an array of arguments.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
Defines a contract for invoking a route callable.
Slim Framework (https://slimframework.com)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']