Skip to content

Commit

Permalink
fix: Config\Kint does not extend BaseConfig
Browse files Browse the repository at this point in the history
We do not need to share the Config file, and if we enable Config Caching,
it cannot be loaded from FactoriesCache when we run `composer install --no-dev`.
Because the autoloader for Kint is initialized in CodeIgniter::initialize().
  • Loading branch information
kenjis committed Oct 4, 2023
1 parent 05bbe66 commit c18a661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/Config/Kint.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Config;

use CodeIgniter\Config\BaseConfig;
use Kint\Parser\ConstructablePluginInterface;
use Kint\Renderer\AbstractRenderer;
use Kint\Renderer\Rich\TabPluginInterface;
Expand All @@ -18,7 +17,7 @@
*
* @see https://kint-php.github.io/kint/ for details on these settings.
*/
class Kint extends BaseConfig
class Kint
{
/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ private function autoloadKint(): void

private function configureKint(): void
{
$config = config(KintConfig::class);
$config = new KintConfig();

Kint::$depth_limit = $config->maxDepth;
Kint::$display_called_from = $config->displayCalledFrom;
Expand Down

0 comments on commit c18a661

Please sign in to comment.