diff --git a/extensions/debug/panels/ConfigPanel.php b/extensions/debug/panels/ConfigPanel.php index 3ed5b06..6ea6570 100644 --- a/extensions/debug/panels/ConfigPanel.php +++ b/extensions/debug/panels/ConfigPanel.php @@ -64,6 +64,7 @@ EOD; return "

Configuration

\n" . $this->renderData('Application Configuration', $app) . "\n" . $this->renderData('PHP Configuration', $php) . "\n" + . $this->renderExtensions() . $this->getPhpInfo(); } @@ -93,6 +94,18 @@ $rows EOD; } + protected function renderExtensions() + { + if (empty($this->data['extensions'])) { + return ''; + } + $data = []; + foreach ($this->data['extensions'] as $extension) { + $data[$extension['name']] = $data['version']; + } + return $this->renderData('Extensions', $data) . "\n"; + } + public function save() { return [ @@ -110,6 +123,7 @@ EOD; 'apc' => extension_loaded('apc'), 'memcache' => extension_loaded('memcache'), ], + 'extensions' => Yii::$app->extensions, ]; } }