applyPlugins example

/** * Parses a variable into a Kint object structure. * * @param mixed &$var The input variable * @param Value $o The base object */
    public function parse(&$var, Value $o): Value
    {
        $o->type = \strtolower(\gettype($var));

        if (!$this->applyPlugins($var$o, self::TRIGGER_BEGIN)) {
            return $o;
        }

        switch ($o->type) {
            case 'array':
                return $this->parseArray($var$o);
            case 'boolean':
            case 'double':
            case 'integer':
            case 'null':
                return $this->parseGeneric($var$o);
            
Home | Imprint | This part of the site doesn't use cookies.