* @since 2.0 */ class ConfigPanel extends Panel { /** * @inheritdoc */ public function getName() { return 'Configuration'; } /** * @inheritdoc */ public function getSummary() { return Yii::$app->view->render('panels/config/summary', ['panel' => $this]); } /** * @inheritdoc */ public function getDetail() { return Yii::$app->view->render('panels/config/detail', ['panel' => $this]); } /** * Returns data about extensions * * @return array */ public function getExtensions() { $data = []; foreach ($this->data['extensions'] as $extension) { $data[$extension['name']] = $extension['version']; } ksort($data); return $data; } /** * Returns the BODY contents of the phpinfo() output * * @return array */ public function getPhpInfo() { ob_start(); phpinfo(); $pinfo = ob_get_contents(); ob_end_clean(); $phpinfo = preg_replace('%^.*
(.*).*$%ms', '$1', $pinfo); $phpinfo = str_replace('