* DataFormatter constructor. */ public function __construct() { $this->cloner = new VarCloner(); $this->dumper = new CliDumper(); } /** * @param $data * @return string * @return DataFormatter */ public static function getDefaultDataFormatter(): DataFormatter { if (self::$defaultDataFormatter === null) { self::$defaultDataFormatter = new DataFormatter(); } return self::$defaultDataFormatter; } * @return DataFormatter */ public function getDataFormatter(): DataFormatter { if ($this->dataFormater === null) { $this->dataFormater = self::getDefaultDataFormatter(); } return $this->dataFormater; } $value = '***redacted***'; }); foreach ($data as $key => $value) { $this->sessionData[$key] = $this->getDataFormatter()->formatVar($value); } } return ['data' => $this->sessionData]; } public function __construct($params, $collect = false) { parent::__construct($params); if ($collect) { $this->collect(); } } /** * Called by the DebugBar when data needs to be collected if ($this->params->get('request', 1)) { $this->debugBar->addCollector(new RequestDataCollector()); } if ($this->params->get('session', 1)) { $this->debugBar->addCollector(new SessionCollector($this->params, true)); } if ($this->params->get('profile', 1)) { $this->debugBar->addCollector((new ProfileCollector($this->params))->setRequestEndTime($endTime)); } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } // Send the application response. $this->respond(); // Trigger the onAfterRespond event. $this->getDispatcher()->dispatch('onAfterRespond'); } /** * Check if the user is required to reset their password. *// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php';|
ClassNotFoundError
|
|---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "CliDumper" from namespace "Symfony\Component\VarDumper\Dumper".
Did you forget a "use" statement for another namespace?
at /web/htdocs/www.liceogalileilamezia.edu.it/home/libraries/vendor/maximebf/debugbar/src/DebugBar/DataFormatter/DataFormatter.php:28
at DebugBar\DataFormatter\DataFormatter->__construct()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/plugins/system/debug/src/AbstractDataCollector.php:80)
at Joomla\Plugin\System\Debug\AbstractDataCollector::getDefaultDataFormatter()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/plugins/system/debug/src/AbstractDataCollector.php:65)
at Joomla\Plugin\System\Debug\AbstractDataCollector->getDataFormatter()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/plugins/system/debug/src/DataCollector/SessionCollector.php:87)
at Joomla\Plugin\System\Debug\DataCollector\SessionCollector->collect()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/plugins/system/debug/src/DataCollector/SessionCollector.php:58)
at Joomla\Plugin\System\Debug\DataCollector\SessionCollector->__construct()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/plugins/system/debug/src/Extension/Debug.php:299)
at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/libraries/src/Application/CMSApplication.php:332)
at Joomla\CMS\Application\CMSApplication->execute()
(/web/htdocs/www.liceogalileilamezia.edu.it/home/includes/app.php:61)
at require_once('/web/htdocs/www.liceogalileilamezia.edu.it/home/includes/app.php')
(/web/htdocs/www.liceogalileilamezia.edu.it/home/index.php:283)
|