uglyUrls) { $container['router'] = new UglyRouter(); } if ($config->debug) { /* We want to enable this as soon as possible, in order to catch errors that are thrown before the Slim error handler is ready. */ Debug::enable(); } return $config; } }