- Added a new phpinfo menu item:
This commit is contained in:
1 parent
64b9a779de
commit
e898c6a23e
8 files changed
+60
-23
No files matched your search
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user