public function phpinfoAction()
    {
        $this->denyAccessIfProfilerDisabled();

        if (null !== $this->cspHandler) {
            $this->cspHandler->disableCsp();
        }

        ob_start();
        phpinfo();
        $phpinfo = ob_get_clean();

        return new Response($phpinfo, 200, ['Content-Type' => 'text/html']);
    }
public function phpinfoAction()
    {
        $this->denyAccessIfProfilerDisabled();

        if (null !== $this->cspHandler) {
            $this->cspHandler->disableCsp();
        }

        ob_start();
        phpinfo();
        $phpinfo = ob_get_clean();

        return new Response($phpinfo, 200, ['Content-Type' => 'text/html']);
    }
public function phpinfoAction ( ) { $ this -> denyAccessIfProfilerDisabled ( ) ; if ( null !== $ this -> cspHandler ) { $ this -> cspHandler -> disableCsp ( ) ; } ob_start ( ) ; phpinfo ( ) ; $ phpinfo = ob_get_clean ( ) ; return new Response ( $ phpinfo , 200 , [ 'Content-Type' => 'text/html' ] ) ; }
Displays the PHP info.

@return Response A Response instance

@throws NotFoundHttpException
Displays the PHP info .