CodeIgniter Forums
CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found (/showthread.php?tid=86936)



CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found - Son of Troy - 02-28-2023

I'm not sure if this has already been addressed, but I thought I'd share just in case. Today I updated my environment to the latest C.I. version. I went through the recommended updates to avoid the Dynamic Attribute error. Afterwards, my system could not find the Kint\Renderer\Renderer class. The Error was located in the App\Config\Kink.php path. After searching through everything, I found Kint\Renderer\RichRenderer. It seemed to have solved the problem. I'll post the Kint.php file so you can take a look. 

The comment, ( # Default - Kint\Renderer\Renderer ) and ( # Default - Renderer::SORT_FULL ) were the default values.

PHP Code:
<?php

namespace Config;

use 
CodeIgniter\Config\BaseConfig;
use 
Kint\Renderer\RichRenderer# Default - Kint\Renderer\Renderer

/**
* --------------------------------------------------------------------------
* Kint
* --------------------------------------------------------------------------
*
* We use Kint's `RichRenderer` and `CLIRenderer`. This area contains options
* that you can set to customize how Kint works for you.
*
* @see https://kint-php.github.io/kint/ for details on these settings.
*/
class Kint extends BaseConfig
{
    /*
    |--------------------------------------------------------------------------
    | Global Settings
    |--------------------------------------------------------------------------
    */

    public $plugins;
    public $maxDepth          6;
    public $displayCalledFrom true;
    public $expanded          false;

    /*
    |--------------------------------------------------------------------------
    | RichRenderer Settings
    |--------------------------------------------------------------------------
    */
    public $richTheme  'aante-light.css';
    public $richFolder false;
    public $richSort  RichRenderer::SORT_FULL# Default - Renderer::SORT_FULL
    public $richObjectPlugins;
    public $richTabPlugins;

    /*
    |--------------------------------------------------------------------------
    | CLI Settings
    |--------------------------------------------------------------------------
    */
    public $cliColors      true;
    public $cliForceUTF8  false;
    public $cliDetectWidth true;
    public $cliMinWidth    40;



If anyone ran into this issue, I hope this helps.


RE: CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found - kenjis - 02-28-2023

It is documented: https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_430.html#config-files


RE: CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found - Son of Troy - 02-28-2023

Awesome! so we want to use ( Kint\Renderer\AbstractRenderer ) not ( Kint\Renderer\RichRenderer ) and the same for the other. I found it in the docs, Thank you.