- Added a new phpinfo menu item:

This commit is contained in:
mcndave committed 2023-10-31 16:12:26 +00:00
1 parent 64b9a779de
commit e898c6a23e
8 files changed
+60 -23

No files matched your search

+11
View File
@@ -31,4 +31,15 @@ class Debugging extends Console {
return $this->renderView("lean-console/page/debugging/logs", get_defined_vars());
}
#[Route(route: "/debugging/phpinfo", name: "lean.console:debugging-phpinfo")]
public function phpinfo(ServerRequestInterface $request, array $arguments) : ResponseInterface
{
ob_start() ;
phpinfo() ;
$phpinfo = ob_get_contents() ;
ob_end_clean() ;
return $this->renderView("lean-console/page/debugging/phpinfo", get_defined_vars());
}
}