Returns the contents of phpinfo().
Return value
\Symfony\Component\HttpFoundation\Response
A response object to be sent to the client.
File
- drupal/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php, line 65
- Contains \Drupal\system\Controller\SystemInfoController.
Class
- SystemInfoController
- Returns responses for System Info routes.
Namespace
Drupal\system\Controller
Code
public function php() {
ob_start();
phpinfo();
$output = ob_get_clean();
return new Response($output);
}