Welcome Guest, Not a member yet? Register   Sign In
CI4 v4.3.2 possible solution to Kint\Renderer\Renderer not found
#1

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.
Reply
#2

It is documented: https://codeigniter4.github.io/CodeIgnit...nfig-files
Reply
#3

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB