From a44559a70c4b2957e9c8820fe10b0eaa92c9a663 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 2 Jul 2024 14:02:41 +0530 Subject: [PATCH] Stop lying that CAKE_VERSION is a constant. Tweak Environment panel's display. --- src/Panel/EnvironmentPanel.php | 2 -- templates/element/environment_panel.php | 13 ++++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Panel/EnvironmentPanel.php b/src/Panel/EnvironmentPanel.php index 28b7decb..7257203c 100644 --- a/src/Panel/EnvironmentPanel.php +++ b/src/Panel/EnvironmentPanel.php @@ -14,7 +14,6 @@ */ namespace DebugKit\Panel; -use Cake\Core\Configure; use Cake\Error\Debugger; use Cake\Event\EventInterface; use DebugKit\DebugInclude; @@ -74,7 +73,6 @@ protected function _prepare(): array 'CAKE_CORE_INCLUDE_PATH' => CAKE_CORE_INCLUDE_PATH, 'CONFIG' => CONFIG, 'CORE_PATH' => CORE_PATH, - 'CAKE_VERSION' => Configure::version(), 'DS' => DS, 'LOGS' => LOGS, 'ROOT' => ROOT, diff --git a/templates/element/environment_panel.php b/templates/element/environment_panel.php index 2eb4d2a6..e6582c0f 100644 --- a/templates/element/environment_panel.php +++ b/templates/element/environment_panel.php @@ -16,6 +16,7 @@ * @link https://cakephp.org CakePHP(tm) Project * @license https://www.opensource.org/licenses/mit-license.php MIT License */ +use Cake\Core\Configure; use Cake\Error\Debugger; use function Cake\Core\h; @@ -31,7 +32,9 @@ */ ?>
-

Application Constants

+

CakePHP Version:

+ +

Application Constants

@@ -56,7 +59,7 @@ -

CakePHP Constants

+

CakePHP Constants

@@ -81,7 +84,7 @@ -

INI Environment

+

INI Environment

@@ -106,7 +109,7 @@ -

PHP Environment

+

PHP Environment

@@ -131,7 +134,7 @@ -

Included Files

+

Included Files

Include Paths

Toolbar->dumpNodes($includePaths) ?>