Kint.php 1.9 KB

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