From 5fd7fcd0842d062963a2d53430ca8c3524c23d02 Mon Sep 17 00:00:00 2001 From: Instrye Date: Wed, 15 Jan 2020 08:34:53 +0800 Subject: [PATCH 1/4] fix. Toolbar init view Error --- system/Debug/Toolbar/Collectors/Events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Debug/Toolbar/Collectors/Events.php b/system/Debug/Toolbar/Collectors/Events.php index 913fab52e272..1b87d0f3d041 100644 --- a/system/Debug/Toolbar/Collectors/Events.php +++ b/system/Debug/Toolbar/Collectors/Events.php @@ -94,7 +94,7 @@ class Events extends BaseCollector */ public function __construct() { - $this->viewer = Services::renderer(null, true); + $this->viewer = Services::renderer(); } //-------------------------------------------------------------------- From 135530602fa66c3e10fa90c12acbc80b1c6ca0de Mon Sep 17 00:00:00 2001 From: Instrye Date: Wed, 15 Jan 2020 09:05:43 +0800 Subject: [PATCH 2/4] update debug toolbar userguide --- user_guide_src/source/testing/debugging.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/user_guide_src/source/testing/debugging.rst b/user_guide_src/source/testing/debugging.rst index 00c87724d7d5..cdf0ff81e175 100644 --- a/user_guide_src/source/testing/debugging.rst +++ b/user_guide_src/source/testing/debugging.rst @@ -72,16 +72,16 @@ Choosing What to Show CodeIgniter ships with several Collectors that, as the name implies, collect data to display on the toolbar. You can easily make your own to customize the toolbar. To determine which collectors are shown, again head over to -the App configuration file:: - - public $toolbarCollectors = [ - 'CodeIgniter\Debug\Toolbar\Collectors\Timers', - 'CodeIgniter\Debug\Toolbar\Collectors\Database', - 'CodeIgniter\Debug\Toolbar\Collectors\Logs', - 'CodeIgniter\Debug\Toolbar\Collectors\Views', - 'CodeIgniter\Debug\Toolbar\Collectors\Cache', - 'CodeIgniter\Debug\Toolbar\Collectors\Files', - 'CodeIgniter\Debug\Toolbar\Collectors\Routes', +the **app/Config/Toolbar.php** configuration file:: + + public $collectors = [ + 'CodeIgniter\Debug\Toolbar\Collectors\Timers::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Database::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Logs::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Views::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Cache::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Files::class', + 'CodeIgniter\Debug\Toolbar\Collectors\Routes::class', ]; Comment out any collectors that you do not want to show. Add custom Collectors here by providing the fully-qualified From c8a9e175bd38f5a744e593d1383960fb6e97a8e4 Mon Sep 17 00:00:00 2001 From: Instrye Date: Wed, 15 Jan 2020 09:15:46 +0800 Subject: [PATCH 3/4] update userguide toolbar events --- user_guide_src/source/testing/debugging.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/user_guide_src/source/testing/debugging.rst b/user_guide_src/source/testing/debugging.rst index cdf0ff81e175..f914d32cf7c7 100644 --- a/user_guide_src/source/testing/debugging.rst +++ b/user_guide_src/source/testing/debugging.rst @@ -75,13 +75,14 @@ can easily make your own to customize the toolbar. To determine which collectors the **app/Config/Toolbar.php** configuration file:: public $collectors = [ - 'CodeIgniter\Debug\Toolbar\Collectors\Timers::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Database::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Logs::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Views::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Cache::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Files::class', - 'CodeIgniter\Debug\Toolbar\Collectors\Routes::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Timers::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Database::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Logs::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Views::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Cache::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Files::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Routes::class', + '\CodeIgniter\Debug\Toolbar\Collectors\Events::class', ]; Comment out any collectors that you do not want to show. Add custom Collectors here by providing the fully-qualified From 95a732f2cb6809ac6ad7e8af79c5ad27ce49d3e5 Mon Sep 17 00:00:00 2001 From: Instrye Date: Wed, 15 Jan 2020 09:17:45 +0800 Subject: [PATCH 4/4] update userguide toolbar events --- user_guide_src/source/testing/debugging.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/user_guide_src/source/testing/debugging.rst b/user_guide_src/source/testing/debugging.rst index f914d32cf7c7..4acc99a7241d 100644 --- a/user_guide_src/source/testing/debugging.rst +++ b/user_guide_src/source/testing/debugging.rst @@ -101,6 +101,7 @@ The Collectors that ship with CodeIgniter are: * **Cache** Will display information about cache hits and misses, and execution times. * **Files** displays a list of all files that have been loaded during this request. * **Routes** displays information about the current route and all routes defined in the system. +* **Events** displays a list of all events that have been loaded during this request. Setting Benchmark Points ========================