Toolbar.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php namespace Config;
  2. use CodeIgniter\Config\BaseConfig;
  3. class Toolbar extends BaseConfig
  4. {
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Debug Toolbar
  8. |--------------------------------------------------------------------------
  9. | The Debug Toolbar provides a way to see information about the performance
  10. | and state of your application during that page display. By default it will
  11. | NOT be displayed under production environments, and will only display if
  12. | CI_DEBUG is true, since if it's not, there's not much to display anyway.
  13. |
  14. | toolbarMaxHistory = Number of history files, 0 for none or -1 for unlimited
  15. |
  16. */
  17. public $collectors = [
  18. \CodeIgniter\Debug\Toolbar\Collectors\Timers::class,
  19. \CodeIgniter\Debug\Toolbar\Collectors\Database::class,
  20. \CodeIgniter\Debug\Toolbar\Collectors\Logs::class,
  21. \CodeIgniter\Debug\Toolbar\Collectors\Views::class,
  22. // \CodeIgniter\Debug\Toolbar\Collectors\Cache::class,
  23. \CodeIgniter\Debug\Toolbar\Collectors\Files::class,
  24. \CodeIgniter\Debug\Toolbar\Collectors\Routes::class,
  25. \CodeIgniter\Debug\Toolbar\Collectors\Events::class,
  26. ];
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Max History
  30. |--------------------------------------------------------------------------
  31. | The Toolbar allows you to view recent requests that have been made to
  32. | the application while the toolbar is active. This allows you to quickly
  33. | view and compare multiple requests.
  34. |
  35. | $maxHistory sets a limit on the number of past requests that are stored,
  36. | helping to conserve file space used to store them. You can set it to
  37. | 0 (zero) to not have any history stored, or -1 for unlimited history.
  38. |
  39. */
  40. public $maxHistory = 20;
  41. /*
  42. |--------------------------------------------------------------------------
  43. | Toolbar Views Path
  44. |--------------------------------------------------------------------------
  45. | The full path to the the views that are used by the toolbar.
  46. | MUST have a trailing slash.
  47. |
  48. */
  49. public $viewsPath = SYSTEMPATH . 'Debug/Toolbar/Views/';
  50. /*
  51. |--------------------------------------------------------------------------
  52. | Max Queries
  53. |--------------------------------------------------------------------------
  54. | If the Database Collector is enabled, it will log every query that the
  55. | the system generates so they can be displayed on the toolbar's timeline
  56. | and in the query log. This can lead to memory issues in some instances
  57. | with hundreds of queries.
  58. |
  59. | $maxQueries defines the maximum amount of queries that will be stored.
  60. |
  61. */
  62. public $maxQueries = 100;
  63. }