public function SystemInfoController::php

Returns the contents of phpinfo().

Return value

\Symfony\Component\HttpFoundation\Response A response object to be sent to the client.

1 string reference to 'SystemInfoController::php'
system.routing.yml in drupal/core/modules/system/system.routing.yml
drupal/core/modules/system/system.routing.yml

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);
}