Kint.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. use Kint\Parser\ConstructablePluginInterface;
  5. use Kint\Renderer\AbstractRenderer;
  6. use Kint\Renderer\Rich\TabPluginInterface;
  7. use Kint\Renderer\Rich\ValuePluginInterface;
  8. /**
  9. * --------------------------------------------------------------------------
  10. * Kint
  11. * --------------------------------------------------------------------------
  12. *
  13. * We use Kint's `RichRenderer` and `CLIRenderer`. This area contains options
  14. * that you can set to customize how Kint works for you.
  15. *
  16. * @see https://kint-php.github.io/kint/ for details on these settings.
  17. */
  18. class Kint extends BaseConfig
  19. {
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Global Settings
  23. |--------------------------------------------------------------------------
  24. */
  25. /**
  26. * @var array<int, ConstructablePluginInterface|string>
  27. * @phpstan-var list<class-string<ConstructablePluginInterface>|ConstructablePluginInterface>
  28. */
  29. public $plugins;
  30. public int $maxDepth = 6;
  31. public bool $displayCalledFrom = true;
  32. public bool $expanded = false;
  33. /*
  34. |--------------------------------------------------------------------------
  35. | RichRenderer Settings
  36. |--------------------------------------------------------------------------
  37. */
  38. public string $richTheme = 'aante-light.css';
  39. public bool $richFolder = false;
  40. public int $richSort = AbstractRenderer::SORT_FULL;
  41. /**
  42. * @var array<string, string>
  43. * @phpstan-var array<string, class-string<ValuePluginInterface>>
  44. */
  45. public $richObjectPlugins;
  46. /**
  47. * @var array<string, string>
  48. * @phpstan-var array<string, class-string<TabPluginInterface>>
  49. */
  50. public $richTabPlugins;
  51. /*
  52. |--------------------------------------------------------------------------
  53. | CLI Settings
  54. |--------------------------------------------------------------------------
  55. */
  56. public bool $cliColors = true;
  57. public bool $cliForceUTF8 = false;
  58. public bool $cliDetectWidth = true;
  59. public int $cliMinWidth = 40;
  60. }