CoreFiles by mySites.guru
DebugBarHtmlDumper.php25 lines, 598 bytes, from Joomla_4.1.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.1.0-beta2
md5
bab12448065ff1b2d83b67e06002b206
sha1
fe5ceccf8e9fee5fba49a7c358e474c66871dfcd
sha256
6efe122aa316c193a6e0092389bc581879fe228b58c753e2cb13bcf4599d6af5
<?php

namespace DebugBar\DataFormatter\VarDumper;

use Symfony\Component\VarDumper\Dumper\HtmlDumper;

/**
 * We have to extend the base HtmlDumper class in order to get access to the protected-only
 * getDumpHeader function.
 */
class DebugBarHtmlDumper extends HtmlDumper
{
    /**
     * Resets an HTML header.
     */
    public function resetDumpHeader()
    {
        $this->dumpHeader = null;
    }

    public function getDumpHeaderByDebugBar() {
        // getDumpHeader is protected:
        return str_replace('pre.sf-dump', '.phpdebugbar pre.sf-dump', $this->getDumpHeader());
    }
}

The same content is in 180 releases, Joomla 4.0.0-rc6 to 5.3.0-alpha3. See them all, or every version of this file.