many small updates
[pharext/pharext.org] / app / bootstrap / web.php
index 2ad975f1c383d006d0d0652f3cebc866100b067c..755bb79acfef14af7d2c119014f4fb8a4a88d260 100644 (file)
@@ -27,7 +27,9 @@ $injector->share(RouteCollector::class)
                $routes->addRoute("GET", "/session", function(array $args = null) use($injector) {
                        $session = $injector->make(Session::class);
                        $response = $injector->make(Response::class);
-                       $response->setContentType("text/plain");
+                       if (!(extension_loaded("xdebug") && ini_get("xdebug.overload_var_dump") && ini_get("html_errors"))) {
+                               $response->setContentType("text/plain");
+                       }
                        ob_start($response);
                        var_dump($_SESSION, $session);
                });